Wechat: yu389741| Email: gisdqy@163.com

Shop:https://www.giserdqy.com/shop

leaflet同时打开多个popup


功能说明

leaflet同时打开多个popup

多个popup

功能实现

    function addMarker(map,latlng,content){
            L.marker(latlng).addTo(map).bindPopup(content,{autoClose:false,closeOnClick: false}).openPopup();
        }
        addMarker(mymap,[35.69763, 111.4384],'1111');
        addMarker(mymap,[35.70361, 111.42455],'222<');
        addMarker(mymap,[35.700971, 111.432953],'333');

Have any Question or Comment?

发表评论

您的电子邮箱地址不会被公开。

CAPTCHAis initialing...