[OpenLayers-Users] How do I get my polygon coordinates?

Bijoy bijoya at rediff.co.in
Thu Sep 11 07:31:06 EDT 2008


Hey GeoUser,

Instead of using getComponentsString(), I use toString()... and, I get the
result... but the format is different. Might have to do some string
manipulation... However, this is good to go for now...

Thanks man!!
<BIJOY>


Bijoy wrote:
> 
> 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--tp19413142p19432872.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list