简体   繁体   English

在Gmap3中的标记上显示信息窗口

[英]Show infowindow on marker in Gmap3

I am using the jquery plugin Gmap3 to create a map. 我正在使用jquery插件Gmap3创建地图。 Right now I have successfully created a map with a marker with this code: 现在,我已经使用以下代码成功创建了带有标记的地图:

    $(window).load(function() {

  $('#my_map').gmap3({
     map:{
        options:{
         center:[36.140093,-115.174012],
         zoom:12,
         mapTypeId: google.maps.MapTypeId.ROADMAP,
         mapTypeControl: true,
         mapTypeControlOptions: {
           style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
         },
         streetViewControl:false,
         scaleControl: true
        }
     },
    marker:{
      latLng:[36.140093,-115.174012]
    }

  });

});

How can I put an info window on the marker's position? 如何在标记位置放置信息窗口?

Please let me know about this. 请让我知道这一点。 Thank you. 谢谢。

You can find a sample code here 您可以在此处找到示例代码

http://gmap3.net/en/catalog/10-overlays/marker-41 http://gmap3.net/en/catalog/10-overlays/marker-41

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM