| Issue 3805: | DrawingManager Add - PathChanged event that is fired during editing | |
| 27 people starred this issue and may be notified of changes. | Back to list |
A PathChanged event fired during polyline, polygon and circle editing would be really handy for showing area (polygon, circle) and/or distance, radius, or perimeter (polyline, circle, polygon). The event handler should be passed the shape being edited and possibly the index of a the changed node.
Dec 7, 2011
#1
[email protected]
Dec 7, 2011
Also for polyline, consider adding a second parameter to setEditable that causes the Drawing Manager to append nodes to a pre-existing polyline.
Dec 11, 2011
I would also appreciate this functionality.
Jan 12, 2012
I need this functionnality
Jan 29, 2012
Please add this functionality
Apr 4, 2012
A start event is precisely what we need. It would give us some way of accessing the object being drawn while the drawing is taking place. The current set of events only gives access to the object *after* the drawing has completed.
Apr 11, 2012
This would be very helpful. I am building a custom tool with google maps v3 and I currently have no way to control the behavior I am looking for surrounding the drawing manager. Does anyone know a workaround for this?
Sep 5, 2012
This event will be very helpful for us in adding new features on maps api. It should be added ASAP.
Nov 8, 2012
I need this functionality.
Nov 16, 2012
Yes, sure should be there! Please
Nov 22, 2012
I also vote for. Please!
Oct 20, 2013
For what we're doing it would also be useful if the event could be cancelled, so that we can check the vertex being added against some conditions and prevent it from being added if it doesn't meet the criteria.
Dec 7, 2013
I also support that request! I'm really missing a drawingManager event like 'shapeChanged' or 'pointAdded' (e.g., for a polyline) that gives me info on the drawing progress. Consider this simple (and useful) scenario: drawing a route (polyline) and get the distance (e.g. last leg and total distance) displayed while drawing. In v2 such a thing was easy; with v3's drawing manager it's simply not possible. Allowing map events while drawing would already help. It would be great if you could give that issue some consideration. Thanks!
Apr 2, 2015
(No comment was entered for this change.)
Status:
Triaged
Apr 8, 2015
(No comment was entered for this change.)
Status:
PendingFurtherReview
May 6, 2015
Right, so the feature request is to add an overlaystarted event? That's a good idea. Another feature request mentioned is to listen for edits to a Polygon. You can do this by adding listeners for set_at, insert_at and remove_at to polygon.getPath()
Jun 30, 2015
Hi there, thanks for the hint, listening to MVCArray updates can be useful. However, the feature request was not for listening while editing a polyline (that is actually easy), but for listening while drawing. The drawingmanager does not allow any events but the 'completed' event. Before that there is no way to acces the polyline (nor its MVCArray path).
Jan 6, 2016
I just placed a question on stackexchange which explains an important use-case where the requested events would help provide UX guidance while drawing polygons and links to a fiddle that displays all the events during drawing on the Data Layer. I don't just want a polygon/polyline drawing-started event, I want events for the second and subsequent points as well. http://stackoverflow.com/questions/34627820/how-to-catch-events-when-drawing-a-polygon-on-google-maps-data-layer. This old feature request seems to confirm that the events are not available - yet ;-) |
|
| ► Sign in to add a comment |