Get Coordinates of drawn polygon feature.
See original GitHub issueI’m not able to use getCoordinates() in order to get polygon drawn coordinates like this:
onDrawEnd(feature: Feature) {
console.log(feature.getGeometry().getCoordinates());
}
getCoordinates() just doesn’t exist.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:11 (1 by maintainers)
Top Results From Across the Web
OpenLayers: Get Coordinates of drawn features
The drawn feature are added to the layer named vector . ... Go through this array and get coordinates of their geometry. features....
Read more >get coordinates of drawn feature in OpenLayers - Stack Overflow
I'm brand new to using OpenLayers, and all I'm trying to do is to get the coordinates of the points, lines, polygons that...
Read more >Creating a point or vertex at an exact x,y location (absolute x,y)
These steps can be used to create either point features or vertices in lines and polygons: To create a point feature · Right-click...
Read more >ee.Geometry.Polygon.coordinates - Earth Engine
Apply the coordinates method to the Polygon object. var polygonCoordinates = polygon.coordinates(); // Print the result to the console.
Read more >Drawing lines, points or polygons (vectors) in ArcGIS
Creating Shapefiles - Drawing lines, points or polygons (vectors) in ArcGIS · In the Name field enter a name for the Shapefile you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mhosman
Is it what you are trying to do ? https://stackblitz.com/edit/angular-2zczhc
That’s great! Thank you @gasperiguillaume