Answer the question
In order to leave comments, you need to log in
How to move a map in google maps?
I have a marker on the object, but when I insert a Google map, the marker is exactly in the middle, and I need to move the map with the marker to the left. How to write it?
Answer the question
In order to leave comments, you need to log in
https://developers.google.com/maps/documentation/j...
Since you most likely need to move the map by a known number of pixels, you need to use panBy
y for this google.maps.Map
.
For other types of shift, there are panTo
and setCenter
.
Well center
, orgoogle.maps.MapOptions
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question