[OpenLayers-Users] change Feature's Bounds

Maribel Bernal maribel.bernal at iviron.com
Fri Mar 19 08:30:06 EDT 2010


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.




More information about the Users mailing list