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

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

<small id='GOTXb'></small><noframes id='GOTXb'>

<tfoot id='GOTXb'></tfoot>

<legend id='GOTXb'><style id='GOTXb'><dir id='GOTXb'><q id='GOTXb'></q></dir></style></legend>
    • <bdo id='GOTXb'></bdo><ul id='GOTXb'></ul>

      如何在“popupopen"事件期間識別 Leaflet 的標記

      How to identify Leaflet#39;s Marker during a `popupopen` event?(如何在“popupopen事件期間識別 Leaflet 的標記?)
      <i id='93iGi'><tr id='93iGi'><dt id='93iGi'><q id='93iGi'><span id='93iGi'><b id='93iGi'><form id='93iGi'><ins id='93iGi'></ins><ul id='93iGi'></ul><sub id='93iGi'></sub></form><legend id='93iGi'></legend><bdo id='93iGi'><pre id='93iGi'><center id='93iGi'></center></pre></bdo></b><th id='93iGi'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='93iGi'><tfoot id='93iGi'></tfoot><dl id='93iGi'><fieldset id='93iGi'></fieldset></dl></div>
      • <tfoot id='93iGi'></tfoot>
              <tbody id='93iGi'></tbody>

            • <small id='93iGi'></small><noframes id='93iGi'>

              <legend id='93iGi'><style id='93iGi'><dir id='93iGi'><q id='93iGi'></q></dir></style></legend>

                <bdo id='93iGi'></bdo><ul id='93iGi'></ul>
              • 本文介紹了如何在“popupopen"事件期間識別 Leaflet 的標記?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                當一個標記被點擊時,我需要執行一些代碼,找到與被點擊的標記對應的 id ,從后端 API 檢索數據,然后將新檢索到的數據添加到 將打開的彈出窗口的內容.

                when a marker is clicked, I need to execute some code that finds the id corresponding to the marker being clicked , retrieves data from backend API, then adds the newly retrieved data to the content of the popup that will open.

                能夠監聽標記上的點擊事件的唯一方法是

                The only way that is able to listen to a click event on the marker is

                map.on('popupopen', function(e){
                    // How to retrieve marker?
                    // eg: Assign an id on creation, retrieve it now during popupopen
                };)
                

                我怎樣才能知道這是哪個標記?是否可以為每個標記添加 id 屬性,然后在 popupopen 事件期間檢索此 id?

                How can I find out which marker this is? Is it possible to add an id attribute to each marker, then retrieve this id during the popupopen event?

                推薦答案

                事件對象包含一個popup"屬性,該屬性具有一個名為_source"的私有屬性,該屬性是彈出窗口綁定到的對象(即標記).由于 _source 應該是私有的,這似乎不是正確的方法,但我不知道該怎么做.

                The event object contains a "popup" attribute that has a private attribute called "_source" which is the object that the popup is bound to (i.e. the marker). Since _source is supposed to be private this doesn't seem like the right way but I'm not sure how else to do it.

                map.on('popupopen', function(e) {
                  var marker = e.popup._source;
                });
                

                這篇關于如何在“popupopen"事件期間識別 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 中的默認加載磁貼顏色?)
                Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側邊欄)
                Leaflet - get latitude and longitude of a marker inside a pop-up(Leaflet - 在彈出窗口中獲取標記的緯度和經度)
                <i id='j4uQF'><tr id='j4uQF'><dt id='j4uQF'><q id='j4uQF'><span id='j4uQF'><b id='j4uQF'><form id='j4uQF'><ins id='j4uQF'></ins><ul id='j4uQF'></ul><sub id='j4uQF'></sub></form><legend id='j4uQF'></legend><bdo id='j4uQF'><pre id='j4uQF'><center id='j4uQF'></center></pre></bdo></b><th id='j4uQF'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='j4uQF'><tfoot id='j4uQF'></tfoot><dl id='j4uQF'><fieldset id='j4uQF'></fieldset></dl></div>

                <small id='j4uQF'></small><noframes id='j4uQF'>

                    <bdo id='j4uQF'></bdo><ul id='j4uQF'></ul>

                      <tfoot id='j4uQF'></tfoot>
                        <tbody id='j4uQF'></tbody>

                      • <legend id='j4uQF'><style id='j4uQF'><dir id='j4uQF'><q id='j4uQF'></q></dir></style></legend>
                          主站蜘蛛池模板: 成人亚洲一区 | 欧美成人免费在线 | 久久九九99 | 日韩欧美不卡 | h小视频 | www.久久精品 | 欧美久久国产精品 | 韩国主播午夜大尺度福利 | 亚洲高清在线免费观看 | 人人射人人| 国产免费黄网 | 国产精品电影在线观看 | 国产视频第一页 | 国产午夜精品久久久久免费视高清 | 日韩国产精品一区二区三区 | 玖玖国产 | 日韩欧美在线观看 | 亚洲性网 | 国产日韩欧美一区二区 | av在线免费观看网站 | 操人视频在线观看 | 一级毛片,一级毛片 | 高清亚洲 | 男女羞羞免费网站 | 免费观看www7722午夜电影 | 久久久久久电影 | 成人在线免费观看 | 欧美精品在线一区二区三区 | 欧美午夜影院 | 国产激情视频在线免费观看 | 国产真实精品久久二三区 | 亚洲成人午夜电影 | 精品国产一区二区三区久久 | 亚洲视频免费观看 | 国产在线视频在线观看 | 精品视频在线观看 | 免费成人高清 | 国产福利资源在线 | 一区二区三区亚洲 | 成人精品一区二区三区中文字幕 | 麻豆国产精品777777在线 |