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

<legend id='Ea1sA'><style id='Ea1sA'><dir id='Ea1sA'><q id='Ea1sA'></q></dir></style></legend>

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

    <tfoot id='Ea1sA'></tfoot>
      <bdo id='Ea1sA'></bdo><ul id='Ea1sA'></ul>

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

      1. 從外部訪問 Leaflet.js GeoJson 功能

        Accessing Leaflet.js GeoJson features from outside(從外部訪問 Leaflet.js GeoJson 功能)
        • <tfoot id='gioam'></tfoot>
            <tbody id='gioam'></tbody>
            <bdo id='gioam'></bdo><ul id='gioam'></ul>

            <legend id='gioam'><style id='gioam'><dir id='gioam'><q id='gioam'></q></dir></style></legend>

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

                  本文介紹了從外部訪問 Leaflet.js GeoJson 功能的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我想與 L. 領域之外的傳單驅動地圖的 GeoJson 覆蓋(多邊形)進行交互,但我似乎無法訪問由 創建的對象L..

                  I want to interact with a leaflet powered map's GeoJson overlay (polygons) from outside of L.'s realm, but I don't seem to be able to access objects created by L..

                  互動包括:

                  • getBounds(myFeature)
                  • fitBounds(myFeature)
                  • 設置樣式等等

                  我可以看到 Leaflet 暴露了 L.GeoJSON.getFeature(),但我似乎無法從中擠出任何東西.沒有文檔,檢查員似乎建議它不接受參數...:

                  I can see Leaflet exposing L.GeoJSON.getFeature(), but I don't seem to be able to squeeze anything out of it. No documentation, and the inspector seems to suggest it does not take arguments... :

                  這只是為了未來的發展嗎?

                  Is this just there for future development?

                  推薦答案

                  您可以使用 getLayer 通過其 id 獲取該功能.
                  http://leafletjs.com/reference.html#layergroup-getlayer

                  You may use getLayer to get the feature by its id.
                  http://leafletjs.com/reference.html#layergroup-getlayer

                  var geojsonLayer = L.geoJson(data,{
                      onEachFeature: function(feature, layer) {
                          layer._leaflet_id = feature.id;                                    
                      }});
                  geojsonLayer.addTo(map);
                  
                  feature = geojsonLayer.getLayer(12345); //your feature id here
                  alert(feature.feature.id);
                  

                  這篇關于從外部訪問 Leaflet.js GeoJson 功能的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 圖層控件添加到側邊欄)

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

                    <legend id='d8qrz'><style id='d8qrz'><dir id='d8qrz'><q id='d8qrz'></q></dir></style></legend>

                          <tfoot id='d8qrz'></tfoot>

                          • <bdo id='d8qrz'></bdo><ul id='d8qrz'></ul>

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

                              <tbody id='d8qrz'></tbody>
                            主站蜘蛛池模板: 欧美日韩免费视频 | 日韩在线中文 | 欧美影院 | 一级a爱片久久毛片 | 欧美一级一 | www.久久 | 伊人热久久 | 国产精品久久久久久亚洲调教 | 日本二区 | 亚洲国产高清在线 | 91麻豆精品国产91久久久更新资源速度超快 | 欧美午夜影院 | av第一页| 狠狠插狠狠操 | 欧美一区二区在线播放 | av黄色片| 精品一区二区三区在线播放 | 成人免费视频网站在线观看 | 国产二区三区 | 成人在线不卡 | 亚洲啪啪| 中文字幕 国产 | 综合久久av | 国产欧美日韩久久久 | 亚洲一区| 精品一区二区电影 | 最新国产精品精品视频 | 国产一区二区三区在线 | 日韩欧美一二三区 | 毛片毛片毛片毛片毛片 | 欧美日一区 | 亚洲午夜视频 | 一级大黄| 久久亚洲国产 | 亚洲综合久久久 | 欧美v在线观看 | 波多野吉衣在线播放 | 蜜桃传媒一区二区 | 亚洲大片一区 | 国产精品久久国产精品久久 | 欧美一区2区三区4区公司二百 |