Skip to content

Polygonal drawing #483

Answered by mrMetalWood
yk9710 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, in the example we are only utilizing the drawing tools that the Google Maps API provides (https://developers.google.com/maps/documentation/javascript/examples/drawing-tools). The source code of that is not available openly since it is part of Googles Maps JS API.

An approach could be to create a polygon with editable: true and take care of mouse cursor tracking and updating the polygon coordinates whenever the mouse moves with the current mouse position

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yk9710
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants