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
<[email protected]> 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
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>



-- 
Frédéric Junod
Camptocamp SA
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to