Polygonal drawing #483
-
Beta Was this translation helpful? Give feedback.
Answered by
mrMetalWood
Aug 26, 2024
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yk9710
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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