久久久久久久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'>

                          主站蜘蛛池模板: 国产中文在线 | 一区二区三区四区在线免费观看 | 亚洲日本视频 | 国产精品一区二区无线 | 国产成人精品亚洲日本在线观看 | 国产精久久久 | 操久久 | 97人人超碰| 国产做a爱片久久毛片 | 日韩视频一级 | 日韩精品视频一区二区三区 | 亚洲精品久久嫩草网站秘色 | 在线视频a | 亚洲欧美日韩电影 | 国产一区二区三区久久久久久久久 | 国产成人高清 | 超碰97免费在线 | 一区二区三区回区在观看免费视频 | 天天干夜夜操 | 一区二区免费看 | 亚洲电影一区二区三区 | 国产成人在线视频 | 亚洲成人精品影院 | 成人免费视频 | 久久精品国产免费看久久精品 | 国产农村妇女精品一二区 | 国产传媒在线播放 | 国产男女猛烈无遮掩视频免费网站 | 欧美一区二区三区在线观看 | 欧美日韩视频一区二区 | 国产精品久久久久久久久久久久 | 国产精品色哟哟网站 | 中文在线视频 | 亚洲一区二区三区在线 | 欧美日韩精品免费观看 | 人人鲁人人莫人人爱精品 | 亚洲a视频| av中文字幕在线 | 成人性视频免费网站 | 中文字幕日韩av | 欧美高清视频一区 |