Replies: 2 comments
-
First off, it looks like you're in the wrong project here :) The origin point of the As a hint, doing something like this with the If all you need is simple lines or polygons, have a look at the google.maps.Polyline and google.maps.Polygon classes (those can be set to "editable", see here: https://developers.google.com/maps/documentation/javascript/examples/user-editable-shapes) or the |
Beta Was this translation helpful? Give feedback.
-
Oh, I apologize. I will move to that repo. |
Beta Was this translation helpful? Give feedback.
-
I am working with React, Typescript and Google Maps CustomOverlay. The idea is to allow the user to draw lines on the map, here a Sandbox.
The problem is that the canvas is rendered with the top-left corner in the middle of the map:

And so the user cant draw line in the left or upper side of the map:

I searched on the web but did not find a solution. Any hint to stretch the overlay over the whole (displayed) map?
Beta Was this translation helpful? Give feedback.
All reactions