Programmatically show infoWindow of the marker googlecart ( Google Maps API )?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
8 views
1. Have a web page with the UL list and googlecharts (working with the map is through Google Maps API).

2. Scripts form the map markers and info window (infoWindow) waiting to click, and if the user clicks, they seem to be expected. (the text of each LI and the text of the infoWindow on the marker, respectively, are the same )

3. But want to display this infoWindow by clicking on a list item UL. I realized this is stupid — by clicking on the button from its id retrieves the coordinates and text and it is a new marker infoWindow him and he is added to the map and shows showInfoWindow. Is there any way to appeal to existing markers on googlecart and show the already existing infoWindow?

Thank you :)
by | 8 views

1 Answer

0 like 0 dislike
for API v3
\r
google.maps.event.addDomListener(document.getElementById('li-id'), 'click', function() { infowindow.open(map, marker); }); 
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 2, 2019 by web_Developer_Victor
110,608 questions
257,186 answers
0 comments
28,013 users