Replies: 3 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.
-
Hello!!! I know its quite late but i am facing the very same issue were u able to find a way? the thing is I tried to translate my canvas to (-50%,-50%) which did make it cover the whole map but when you do that; then you cannot maintain the position of your drawings. they drift away on every zoom (not persisting on the very location /landmark you first placed them) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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