S
S
Sergey2016-11-30 05:17:55
JavaScript
Sergey, 2016-11-30 05:17:55

How to implement address change on Maps JavaScript API?

Good afternoon. Not a big connoisseur of JavaScript and Google maps, so there was a problem. There are two addresses. I would like that by clicking on them (they themselves are located outside the map and are html blocks), the map is centered on the desired marker. I don't know if this is possible. In the idea - you click on one address, on the map it is, you click on another - the map displays the location of the second address. I would be grateful for any advice. I read the dock on Google maps, but did not find anything suitable. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Fominykh, 2016-11-30
@igos321

Map.serCenter({lat: -34, lng: 151});
There is also a
kind of animated
Source
Accordingly, when you click on the buttons, you do the desired longitude and latitude.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question