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

    • <bdo id='7mLci'></bdo><ul id='7mLci'></ul>

  1. <tfoot id='7mLci'></tfoot>

    <legend id='7mLci'><style id='7mLci'><dir id='7mLci'><q id='7mLci'></q></dir></style></legend>

      <small id='7mLci'></small><noframes id='7mLci'>

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

      如何將兩個 geoJSON 特征集合添加到兩個圖層組中

      How to add two geoJSON feature collections in to two layer groups(如何將兩個 geoJSON 特征集合添加到兩個圖層組中)
    1. <legend id='d8BBu'><style id='d8BBu'><dir id='d8BBu'><q id='d8BBu'></q></dir></style></legend><tfoot id='d8BBu'></tfoot>

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

              • <bdo id='d8BBu'></bdo><ul id='d8BBu'></ul>
                  <tbody id='d8BBu'></tbody>

              • <i id='d8BBu'><tr id='d8BBu'><dt id='d8BBu'><q id='d8BBu'><span id='d8BBu'><b id='d8BBu'><form id='d8BBu'><ins id='d8BBu'></ins><ul id='d8BBu'></ul><sub id='d8BBu'></sub></form><legend id='d8BBu'></legend><bdo id='d8BBu'><pre id='d8BBu'><center id='d8BBu'></center></pre></bdo></b><th id='d8BBu'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='d8BBu'><tfoot id='d8BBu'></tfoot><dl id='d8BBu'><fieldset id='d8BBu'></fieldset></dl></div>
              • 本文介紹了如何將兩個 geoJSON 特征集合添加到兩個圖層組中的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我有兩個 geoJSON 功能集合需要添加到地圖中,我還希望通過圖層可見性控制器打開和關閉它們,如 http://leafletjs.com/examples/layers-control.html

                I have two geoJSON feature collections that I need to add to the map, and I also want them to be toggled on and off via the layer visibility controllers as shown in http://leafletjs.com/examples/layers-control.html

                我該怎么做?

                推薦答案

                Leaflet的GeoJSON層L.GeoJSON的使用也有一個很好的教程,可以在這里找到:http://leafletjs.com/examples/geojson.html 這里是 的參考L.GeoJSON:http://leafletjs.com/reference.html#geojson您已經在 L.control.layers 上找到了教程,這里是它的參考:http://leafletjs.com/reference.html#control-layers

                There is also a very good tutorial on the usage of L.GeoJSON, Leaflet's GeoJSON layer, which can be found here: http://leafletjs.com/examples/geojson.html and here is the reference for L.GeoJSON: http://leafletjs.com/reference.html#geojson You already found the tutorial on L.control.layers, here is the reference for it: http://leafletjs.com/reference.html#control-layers

                其實做起來很簡單,只需要創建一個layercontrol,使用你喜歡的XHR庫加載一個GeoJSON文件到你的腳本中,使用檢索到的數據來定義一個L.GeoJSON圖層并將其添加到圖層控件.在代碼中:

                It's actually quite simple to do, it's just a matter of creating a layercontrol, loading a GeoJSON file into your script by using your favorite XHR library, use the retrieved data to defined a L.GeoJSON layer and add it to the layercontrol. In code:

                // Create the layercontrol and add it to the map
                var controlLayers = L.control.layers().addTo(map);
                
                // Loading a GeoJSON file (using jQuery's $.getJSON)    
                $.getJSON('/my-folder/my-file.json', function (data) {
                
                  // Use the data to create a GeoJSON layer and add it to the map
                  var geojsonLayer = L.geoJson(data).addTo(map);
                
                  // Add the geojson layer to the layercontrol
                  controlLayers.addOverlay(geojsonLayer, 'My GeoJSON layer title');
                
                });
                

                關于 Plunker 的工作示例:http://plnkr.co/edit/tFVrrq?p=預覽

                A working example on Plunker: http://plnkr.co/edit/tFVrrq?p=preview

                這篇關于如何將兩個 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 圖層控件添加到側邊欄)
                <i id='qKd67'><tr id='qKd67'><dt id='qKd67'><q id='qKd67'><span id='qKd67'><b id='qKd67'><form id='qKd67'><ins id='qKd67'></ins><ul id='qKd67'></ul><sub id='qKd67'></sub></form><legend id='qKd67'></legend><bdo id='qKd67'><pre id='qKd67'><center id='qKd67'></center></pre></bdo></b><th id='qKd67'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qKd67'><tfoot id='qKd67'></tfoot><dl id='qKd67'><fieldset id='qKd67'></fieldset></dl></div>

                        <tbody id='qKd67'></tbody>
                    1. <tfoot id='qKd67'></tfoot><legend id='qKd67'><style id='qKd67'><dir id='qKd67'><q id='qKd67'></q></dir></style></legend>
                        <bdo id='qKd67'></bdo><ul id='qKd67'></ul>

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

                          主站蜘蛛池模板: 国产精品视频99 | 久久人人爽 | 在线观看国产小视频 | 国产成人午夜高潮毛片 | 欧美日韩亚洲另类 | 免费一级黄色 | 久久亚洲国产精品 | 黄色片视频免费 | 伊人av在线 | 思思在线视频 | 国产一级一片免费播放放a 免费国产视频 | 亚洲午夜视频 | 国产精品人人做人人爽人人添 | 日本在线免费 | 波多野一区| 亚洲激情在线观看 | 国产欧美日韩视频 | 色综合五月 | 影音先锋中文字幕在线 | 亚洲精品18在线观看 | 欧美精品一区在线观看 | 亚洲免费毛片 | 另类小说第一草 | 91精品久久久久久久久 | 就爱啪啪网| 狠狠干婷婷 | 久久午夜影院 | www.4hu95.com四虎 丰满岳乱妇一区二区 | 死神来了4无删减版在线观看 | 国产一区二区av | 久久久久久97| 日本中文字幕一区 | 久久久久国产一区二区三区 | 成人h视频在线观看 | 日本天堂在线观看 | 国产成人免费视频 | 国产天堂av | 亚洲私人影院 | 99久久99| 成人免费看片视频 | 日本一级淫片 |