I
I
inscamp2014-11-06 23:13:56
JavaScript
inscamp, 2014-11-06 23:13:56

How to make info boxes for multiple markers in Google Maps?

There is a google map with several markers. I used this recipe from Google Maps API.
For each marker, it is necessary to show windows with information corresponding to each of the markers by clicking.
For one marker, it is proposed to do so .
At the level of the algorithm, I believe that it is necessary
• in the code with Info windows (second link) to declare contentString not as a variable, but as an array of several "content" windows for each marker.
• somehow declare the variable infowindow
• in the loop, give each marker as a click event the corresponding element of the contentString array.
For people who know a lot about JavaScript, the question would not be an edge like mine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Kirenkov, 2014-11-06
@DeLaVega

You believe correctly ... only this is not a question, but a task. You on freelansim.ru.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question