Hi GeoUser,
I tried it as shown below:-
function check(obj){
var points = vectors.features[0].geometry.getComponentsString(); //
where
vectors is myVectorLayer
alert(points);
polycontrol.deactivate();
}
It doesn't work. I get error like "this.components[i].toShortString is not a
function" in the
OpenLayers.Util.applyDefaults(geometry,t...sh(this.components[i].toShortString());}
It seems so close... and yet so far... :)
<BIJOY>
GeoUser wrote:
>
> Try with something like this:
>
> var points = myVectorLayer.features[0].geometry.getComponentsString();
>
> does it work for you?
>
--
View this message in context:
http://www.nabble.com/How-do-I-get-my-polygon-coordinates--tp19413142p19432557.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users