Google Maps, open info window after click on a link

后端 未结 3 533
伪装坚强ぢ
伪装坚强ぢ 2020-12-01 03:26

i have this code to display a google map:




        
3条回答
  •  Happy的楠姐
    2020-12-01 03:41

    use this code i already tried it

    google.maps.event.addListener(marker, 'click', function() {
    
                       infoWindow.setContent(locations[i][0]);
                       infoWindow.open(map, marker);
    
    
          });
    

提交回复
热议问题