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

Imran Rajjad rajjad at gmail.com
Tue Feb 7 10:37:21 EST 2012


refer to the below example

view-source:http://openlayers.org/dev/examples/regular-polygons.html

here whatever you draw ends up in a vector layer, after you have added your
circle to the vector layer , you can then use that two lines I wrote
earlier to get your circle`s coordinates.

regards,
Imran

On Tue, Feb 7, 2012 at 6:27 PM, Blake Loizides <blakeloizides at gmail.com>wrote:

> please could you help. I would be very appreciative of you. Got no one
> else else I can ask.
>
> Even if you can just email me a working example that you did, That would
> be a great help, I,m desperate.
>
> I am stuck Imran. Not sure what to do, and there is no example of this on
> the internet.
>
> Please help me Imran. Pretty Please. this is the only thing I need to
> finish my project.
>
>
>
>
> On Tue, Feb 7, 2012 at 3:15 PM, Blake Loizides <blakeloizides at gmail.com>wrote:
>
>> Thanks for the help.
>>
>> Do you perhaps have a working example of this? I am still having troubles.
>>
>> Not sure where to go from here?
>>
>> Please help.
>>
>> thanks Blake
>>
>>
>>
>> On Tue, Feb 7, 2012 at 1:21 PM, Imran Rajjad <rajjad at gmail.com> wrote:
>>
>>> var g=veclayer.features[0].geometry; //get geometry of a featyre in your
>>> vector layer
>>> var vertices = g.getVertices(); //get vertices as array of POINT
>>> geometry in an array
>>>
>>> regards,
>>> Imran
>>>
>>> On Tue, Feb 7, 2012 at 3:56 PM, Blake <blakeloizides at gmail.com> wrote:
>>>
>>>>
>>>>
>>>> Did anyone find a solution for this?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>>>
>>>
>>>
>>>
>>> --
>>> I.R
>>>
>>
>>
>


-- 
I.R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120207/46eb204b/attachment-0001.html


More information about the Users mailing list