久久久久久久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 功能的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我想與 L. 領(lǐng)域之外的傳單驅(qū)動地圖的 GeoJson 覆蓋(多邊形)進行交互,但我似乎無法訪問由 創(chuàng)建的對象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)
                  • 設(shè)置樣式等等

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

                  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... :

                  這只是為了未來的發(fā)展嗎?

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

                  這篇關(guān)于從外部訪問 Leaflet.js GeoJson 功能的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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(更改傳單標記群集圖標顏色,繼承其余默認 CSS 屬性)
                  Trigger click on leaflet marker(觸發(fā)點擊傳單標記)
                  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 圖層控件添加到側(cè)邊欄)

                  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>
                            主站蜘蛛池模板: 成人一区二区视频 | 久久久精品视频免费看 | 综合国产| 亚洲精品福利视频 | 久久av.com| 欧美精品久久久久久久久老牛影院 | 91欧美 | 国产一区二区av | jizz18国产 | 久久青视频| 2018中文字幕第一页 | 久久久综合色 | 欧美成视频 | 久久久久久久久国产 | 亚洲视频精品 | 欧美激情在线一区二区三区 | 91免费看片 | 久久综合久久久 | 国产一区二区三区欧美 | 99精品久久久 | 欧美视频在线播放 | 国产精品免费看 | 欧美日韩一 | caoporn免费| 中国黄色在线视频 | 操久久 | 色欧美片视频在线观看 | 日韩国产一区二区三区 | 欧美激情99 | 国产xxxx岁13xxxxhd| 久久av一区| 国产激情免费视频 | 久久精品福利 | 中文天堂网 | 91精品在线播放 | 亚洲精品久久久久久久久久吃药 | www.日韩在线 | 国产精品1区2区3区 欧美 中文字幕 | 亚洲国产精品一区二区三区 | 一区二区中文 | 亚洲免费人成在线视频观看 |