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

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

      How to add two geoJSON feature collections in to two layer groups(如何將兩個(gè) geoJSON 特征集合添加到兩個(gè)圖層組中)
    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>
              • 本文介紹了如何將兩個(gè) geoJSON 特征集合添加到兩個(gè)圖層組中的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我有兩個(gè) geoJSON 功能集合需要添加到地圖中,我還希望通過圖層可見性控制器打開和關(guān)閉它們,如 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的使用也有一個(gè)很好的教程,可以在這里找到:http://leafletjs.com/examples/geojson.html 這里是 的參考L.GeoJSON:http://leafletjs.com/reference.html#geojson您已經(jīng)在 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

                其實(shí)做起來很簡單,只需要創(chuàng)建一個(gè)layercontrol,使用你喜歡的XHR庫加載一個(gè)GeoJSON文件到你的腳本中,使用檢索到的數(shù)據(jù)來定義一個(gè)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');
                
                });
                

                關(guān)于 Plunker 的工作示例:http://plnkr.co/edit/tFVrrq?p=預(yù)覽

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

                這篇關(guān)于如何將兩個(gè) geoJSON 特征集合添加到兩個(gè)圖層組中的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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(檢查一個(gè)多邊形點(diǎn)是否在傳單中的另一個(gè)內(nèi)部)
                Changing leaflet markercluster icon color, inheriting the rest of the default CSS properties(更改傳單標(biāo)記群集圖標(biāo)顏色,繼承其余默認(rèn) CSS 屬性)
                Trigger click on leaflet marker(觸發(fā)點(diǎn)擊傳單標(biāo)記)
                How can I change the default loading tile color in LeafletJS?(如何更改 LeafletJS 中的默認(rèn)加載磁貼顏色?)
                Add external geojson to leaflet layer(將外部geojson添加到傳單層)
                Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側(cè)邊欄)
                <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'>

                          主站蜘蛛池模板: 日韩图区| 日本精a在线观看 | 国产一区精品 | 成人免费视频网站在线看 | 一区二区三区视频在线免费观看 | 国产精品免费一区二区 | 亚洲在线视频 | 欧美 日韩精品 | 国产视频一区二区 | 波多野结衣中文字幕一区二区三区 | 一区二区在线 | 一区二区在线看 | 狠狠躁夜夜躁人人爽天天高潮 | av免费网| 成人在线免费视频 | 九九热精品视频 | 国产欧美一区二区三区久久手机版 | 围产精品久久久久久久 | 亚洲精品乱码久久久久久久久 | 欧美国产日韩在线观看成人 | 亚洲国产精品激情在线观看 | 91青青草视频| japanhd成人 | 亚洲一区毛片 | 国产区视频在线观看 | 久久乐国产精品 | 国产精品一区二区久久 | 日韩久久久一区二区 | 日韩av美女电影 | 麻豆久久久久久久 | 91xxx在线观看 | 国产激情视频在线观看 | 国产人免费人成免费视频 | 中文精品视频 | 一级欧美黄色片 | 色视频欧美 | 久久33 | 亚洲男人天堂网 | 亚洲高清在线观看 | 亚洲精品一区二区三区中文字幕 | 黄色网址免费看 |