久久久久久久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 中的標記時,如何防止顯示彈出窗口

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

        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 中的標記時,如何防止顯示彈出窗口?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我想要一個在我單擊傳單標記時不顯示的彈出窗口.我不能使用 clickable : false 因為它會使標記充當底層地圖的一部分".這對我來說是不可接受的.我嘗試了以下代碼:

                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();
                });
                

                沒有任何結果.在不使用標記對象的 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?

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

                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.

                推薦答案

                只是不要將彈出窗口綁定到標記.這是一個帶有 2 個標記的 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);
                

                我已經編輯了 fiddle 并認為這可能是您要問的.這是代碼的重要部分:

                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();
                }
                

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

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

                相關文檔推薦

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

              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>
                        • 主站蜘蛛池模板: 色视频网站 | xxxcom在线观看 | 一区二区三区欧美在线 | 四虎影院在线观看免费视频 | 色播视频在线观看 | 蜜桃免费一区二区三区 | 国产欧美日韩精品一区二区三区 | 国产乱码精品一区二区三区中文 | 国产一二三区免费视频 | 成av人电影在线 | 欧美午夜精品久久久久免费视 | 欧美成人a∨高清免费观看 老司机午夜性大片 | 日韩黄 | 国产91在线视频 | 久久精品欧美一区二区三区不卡 | 人人干在线视频 | 黑人性hd | 在线黄色网 | 免费视频久久 | 天堂一区在线 | 国产精品久久久久久久久久久免费看 | 日韩国产中文字幕 | 亚洲一区二区在线视频 | 亚洲激情av | 爱爱小视频 | 欧美精品一区二区三区四区 | 暖暖日本在线视频 | 亚洲品质自拍视频网站 | 亚洲视频精品在线 | 久草视频在线看 | 中文在线视频 | 黄色大片视频 | 欧美日韩一区二区在线观看 | 久久久久久久91 | 欧美精品一区二区三区在线播放 | 中国大陆高清aⅴ毛片 | 欧美激情一区二区三区 | 人人九九 | 亚洲一区二区国产 | 日韩精品成人 | 免费黄色大片 |