久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  1. <small id='FXmk7'></small><noframes id='FXmk7'>

    <legend id='FXmk7'><style id='FXmk7'><dir id='FXmk7'><q id='FXmk7'></q></dir></style></legend>
    <i id='FXmk7'><tr id='FXmk7'><dt id='FXmk7'><q id='FXmk7'><span id='FXmk7'><b id='FXmk7'><form id='FXmk7'><ins id='FXmk7'></ins><ul id='FXmk7'></ul><sub id='FXmk7'></sub></form><legend id='FXmk7'></legend><bdo id='FXmk7'><pre id='FXmk7'><center id='FXmk7'></center></pre></bdo></b><th id='FXmk7'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='FXmk7'><tfoot id='FXmk7'></tfoot><dl id='FXmk7'><fieldset id='FXmk7'></fieldset></dl></div>
    • <bdo id='FXmk7'></bdo><ul id='FXmk7'></ul>

    1. <tfoot id='FXmk7'></tfoot>

      單擊 Leaflet 中的標(biāo)記時,如何防止顯示彈出窗口

      How can I prevent a popup to show when clicking on a marker in Leaflet?(單擊 Leaflet 中的標(biāo)記時,如何防止顯示彈出窗口?)

        1. <i id='9uhmA'><tr id='9uhmA'><dt id='9uhmA'><q id='9uhmA'><span id='9uhmA'><b id='9uhmA'><form id='9uhmA'><ins id='9uhmA'></ins><ul id='9uhmA'></ul><sub id='9uhmA'></sub></form><legend id='9uhmA'></legend><bdo id='9uhmA'><pre id='9uhmA'><center id='9uhmA'></center></pre></bdo></b><th id='9uhmA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='9uhmA'><tfoot id='9uhmA'></tfoot><dl id='9uhmA'><fieldset id='9uhmA'></fieldset></dl></div>
          • <bdo id='9uhmA'></bdo><ul id='9uhmA'></ul>
          • <tfoot id='9uhmA'></tfoot>

            <small id='9uhmA'></small><noframes id='9uhmA'>

              <tbody id='9uhmA'></tbody>
                <legend id='9uhmA'><style id='9uhmA'><dir id='9uhmA'><q id='9uhmA'></q></dir></style></legend>

              1. 本文介紹了單擊 Leaflet 中的標(biāo)記時,如何防止顯示彈出窗口?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我想要一個在我單擊傳單標(biāo)記時不顯示的彈出窗口.我不能使用 clickable : false 因為它會使標(biāo)記充當(dāng)?shù)讓拥貓D的一部分".這對我來說是不可接受的.我嘗試了以下代碼:

                I want a popup that doesn't show itself when I click on the Leaflet marker. I cannot use clickable : false because it will make the markers "act as a part of the underlying map" and this is unacceptable for me. I tried the following code:

                marker.on('click', function(event) {
                  event.originalEvent.preventDefault();
                });
                

                沒有任何結(jié)果.在不使用標(biāo)記對象的 clickable : false 屬性的情況下,防止彈出窗口顯示的正確方法是什么?

                without any results. What is the right way to prevent a popup from showing without using the clickable : false property of the marker object?

                我只需要通過單擊一個自定義按鈕來打開地圖上的所有彈出窗口,但我不希望在單擊特定標(biāo)記后彈出窗口顯示自己.

                All I need is to open all the popups on the map by clicking on one custom button, but I don't want the popups to show themselves after I click on a particular marker.

                推薦答案

                只是不要將彈出窗口綁定到標(biāo)記.這是一個帶有 2 個標(biāo)記的 fiddle.一個有彈出窗口,另一個沒有.

                Just don't bind a popup to the marker. Here's a fiddle with 2 markers. One has a popup and the other does not.

                L.marker([51, 0]).bindPopup("this is a popup").addTo(map);
                
                L.marker([51, 1.5]).addTo(map);
                

                我已經(jīng)編輯了 fiddle 并認(rèn)為這可能是您要問的.這是代碼的重要部分:

                I've edited the fiddle and think it might be what you are asking. Here's the important part of the code:

                function onClick(event) {
                    event.target.closePopup();
                }
                

                這篇關(guān)于單擊 Leaflet 中的標(biāo)記時,如何防止顯示彈出窗口?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                Check if a polygon point is inside another in leaflet(檢查一個多邊形點是否在傳單中的另一個內(nèi)部)
                Changing leaflet markercluster icon color, inheriting the rest of the default CSS properties(更改傳單標(biāo)記群集圖標(biāo)顏色,繼承其余默認(rèn) CSS 屬性)
                Trigger click on leaflet marker(觸發(fā)點擊傳單標(biāo)記)
                How can I change the default loading tile color in LeafletJS?(如何更改 LeafletJS 中的默認(rèn)加載磁貼顏色?)
                Add external geojson to leaflet layer(將外部geojson添加到傳單層)
                Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側(cè)邊欄)

              2. <tfoot id='DGOv2'></tfoot>

                <i id='DGOv2'><tr id='DGOv2'><dt id='DGOv2'><q id='DGOv2'><span id='DGOv2'><b id='DGOv2'><form id='DGOv2'><ins id='DGOv2'></ins><ul id='DGOv2'></ul><sub id='DGOv2'></sub></form><legend id='DGOv2'></legend><bdo id='DGOv2'><pre id='DGOv2'><center id='DGOv2'></center></pre></bdo></b><th id='DGOv2'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='DGOv2'><tfoot id='DGOv2'></tfoot><dl id='DGOv2'><fieldset id='DGOv2'></fieldset></dl></div>
                  <tbody id='DGOv2'></tbody>

                  <legend id='DGOv2'><style id='DGOv2'><dir id='DGOv2'><q id='DGOv2'></q></dir></style></legend>
                    • <small id='DGOv2'></small><noframes id='DGOv2'>

                        <bdo id='DGOv2'></bdo><ul id='DGOv2'></ul>
                        • 主站蜘蛛池模板: 亚洲高清在线观看 | 精品国产一区二区三区成人影院 | 日韩成人国产 | 亚洲天堂久久 | 一二三区视频 | 日本aaaa| 日本一区二区三区免费观看 | 久久中文免费视频 | 毛片久久久 | 国产福利久久 | 久久伦理中文字幕 | 国产二区精品视频 | 久久99成人 | 日本在线免费看最新的电影 | 久久精品亚洲精品国产欧美 | 九九热在线免费视频 | 成人网在线观看 | 玖草资源 | 精品日韩一区二区 | 成人天堂 | 国产精品久久久久久久久久久久 | 亚洲视频免费播放 | 国产午夜精品理论片a大结局 | 亚洲精品9999 | 亚洲顶级毛片 | 日韩一区在线观看视频 | 日韩免费网站 | 欧美国产中文 | 91精品久久久久久久久久 | 日本色婷婷 | 国产欧美精品一区二区三区 | 精品一区二区在线观看 | 操人视频在线观看 | 天天视频一区二区三区 | 精品久久久久久久久久久久久久 | 国产一级特黄aaa大片评分 | 黄视频网址| 99热视| 国产一区二 | 一区二区三区高清 | 国产一区|