I have tried to add a click handler to the map, but am not sure how to tell when the polygon has finished drawing. Is there a simple function to get the polygon coordinates on draw end ?
相关问题
- Union of many (more than two) polygons without hol
- How to add a “hole” to a Circle Polygon (Google Ma
- No such property: geometry when updating feature i
- Android Google Map Polygon click event [duplicate]
- Polygon from a grid of squares
相关文章
- How to make holes in a Polygon in shapely python,
- How to check if a polygon is empty in Shapely?
- Draw a rectangle arround a polygon when given in c
- Greiner-Hormann clipping with degeneracies
- Fill polygon with pattern doesn't work with le
- getFeatures() is empty
- How to draw an arbitrary irregular polygon with n
- How to determine a diagonal is in or out of a conc
You can probably adapt https://stackoverflow.com/a/24835176/228885 for your purposes. As mentioned in another answer
feature.once('change', ...)
might be another way to go. I expect in that case you would pick the last element from the feature passed to the handler. Then you would extract the coordinates out of it and off you go.TLDR; Listen
add
orchange
of features, extract coordinate.