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');

You may also like...

2 Responses

  1. Some truly nice and useful information on this web site, as well I conceive the style and design has excellent features.

  2. You re so awesome! I don t believe I have read a single thing like that before.

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

CAPTCHAis initialing...