P
P
Programmir2019-04-27 11:30:02
Google Maps
Programmir, 2019-04-27 11:30:02

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

1 answer(s)
M
Moskus, 2019-04-27
@Moskus

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 panByy for this google.maps.Map.
For other types of shift, there are panToand setCenter.
Well center, orgoogle.maps.MapOptions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question