please could someone help me and bless me with an example of how to get coordinates from a polygon in OpenLayers?
Get Coordinates from Polygon in OpenLayers
htmljavascriptopenlayers-2polygonvector
Related Question
- OpenLayers Algorithm – How to Get Radius of a Circle in OpenLayers
- [GIS] How to make a predetermined polygon (circle) from 4 coordinates, the radius and center Longitude and Latitude in OpenLayers
- [GIS] OpenLayers – Get features inside a polygon
- [GIS] How to get list of all markers from selected polygon using OpenLayers 2 Map
- OpenLayers Coordinates – How to Get Coordinates of Drawn Features in OpenLayers
Best Answer
you can get the coordinates of your shape as below code:
and also you can get covered area, centroid of your shape, vertices of ypur shape, length or geodesic area.
if you want specific feature bounds, you can write order of your feature [i] place like this:
and below code will give all bounds of your features example :
I hope that will be useful for you....