[OpenLayers-Users] change Feature's Bounds
Frederic Junod
frederic.junod at camptocamp.com
Fri Mar 19 08:47:16 EDT 2010
Hi,
Not sure what you are trying to do...
If you want to inverse the lon and lat coordinates, you should use
something like:
var x = this.feature.geometry.lon;
var y = this.feature.geometry.lat;
this.feature.geometry.move(y, x);
fredj
On Fri, Mar 19, 2010 at 1:30 PM, Maribel Bernal
<maribel.bernal at iviron.com> wrote:
> Hi all,
> It may be a beginner question, but there are any way to change the
> bounds of a point?
> For example, if I wanted to change (lon,lat) for (lat,lon), can I do this?:
>
> var x = this.feature.geometry.getBounds().getCenterLonLat().lon;
> var y = this.feature.geometry.getBounds().getCenterLonLat().lat;
> this.feature.geometry.setBounds(y,x);
>
> Thanks for your attention.
> Maribel.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
--
Frédéric Junod
Camptocamp SA
More information about the Users
mailing list