L
L
LunaMoon202020-06-23 19:20:41
Google Maps
LunaMoon20, 2020-06-23 19:20:41

How to open marker infoWindow with id on click on DOM element with identical id?

There is a Google map on which there are 131 markers (they are presented as an array), each with its own information. There are as many items in the side menu as there are markers on the map. Example: There is an element with id - A, and a marker with id - A. Clicking on an element with this id should open a marker with the same id. After that, when you click on the button in the infoWindow, you need to change the icon of this marker

. That is, once again:

There are markers with addresses on this Google map. There is a side menu in which these addresses are presented. When you click on one of the addresses, you need to open a marker with the same address.
I would be very grateful for a detailed and naturally correct answer.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question