removing default mouseover tooltip from marker in google-maps

后端 未结 3 1772
执念已碎
执念已碎 2021-01-14 01:28

I have created an application for showing an Information Window popup for markers, The application is working fine and the popup is showing correctly but the only solution i

3条回答
  •  春和景丽
    2021-01-14 02:18

    It appears that the title of your marker is set to the html content of your pop up window. When you create the marker object, give it a title attribute of what you would like to be displayed (i.e. name of your location...)

    var marker = new google.maps.Marker({
      position: whateverpositionyouset,
      title: whatevertitleyouwant,
      map: map
    })
    

提交回复
热议问题