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

<tfoot id='ZqQhT'></tfoot>

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

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

        將現有的傳單多邊形添加到現有的傳單圖層

        Add existing leaflet polygons to an existing leaflet layer(將現有的傳單多邊形添加到現有的傳單圖層)
        <legend id='7wAPw'><style id='7wAPw'><dir id='7wAPw'><q id='7wAPw'></q></dir></style></legend>
          <tbody id='7wAPw'></tbody>
          • <bdo id='7wAPw'></bdo><ul id='7wAPw'></ul>

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

                  <tfoot id='7wAPw'></tfoot>
                  <i id='7wAPw'><tr id='7wAPw'><dt id='7wAPw'><q id='7wAPw'><span id='7wAPw'><b id='7wAPw'><form id='7wAPw'><ins id='7wAPw'></ins><ul id='7wAPw'></ul><sub id='7wAPw'></sub></form><legend id='7wAPw'></legend><bdo id='7wAPw'><pre id='7wAPw'><center id='7wAPw'></center></pre></bdo></b><th id='7wAPw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='7wAPw'><tfoot id='7wAPw'></tfoot><dl id='7wAPw'><fieldset id='7wAPw'></fieldset></dl></div>
                • 本文介紹了將現有的傳單多邊形添加到現有的傳單圖層的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一堆存儲在數據庫中的多邊形.我想將它們添加到地圖中,以便可以使用 leaflet-draw 工具欄.雖然,現在多邊形已添加到地圖中,但我無法對其進行編輯.

                  I have a bunch of polygons which are stored in a database. I would like to add them to the map in such a way that they can be edited using the leaflet-draw toolbar. Although, now the polygons get added to the map, I am unable edit them.

                  我認為這是因為它們沒有添加到 layerGroup() 添加新繪制的形狀.

                  I think this is because they are not added to the layerGroup() to which newly drawn shapes are added.

                  請幫忙.

                  推薦答案

                  你必須將你的多邊形添加到 featureGroup drawnItems !比方說,

                  You have to add your polygons to the featureGroup drawnItems ! Let's say,

                      var polyLayers = dbArray;
                  

                  是您的帶有多邊形的數據庫數組.首先使用您繪制的項目創建一個特征組:

                  is your database array with polygons. First create a feature group with your drawn items:

                      var drawnItems = new L.FeatureGroup();
                  

                  并將其添加到地圖中:

                      map.addLayer(drawnItems);
                  

                  然后你只需要從你的數據庫中迭代你的多邊形并將它們添加到drawedItems FeatureGroup:

                  Then you simply need to iterate over your polygons from your database and add them to the drawnItems FeatureGroup:

                      for(layer of polyLayers) {
                          drawnItems.addLayer(layer); 
                      };
                  

                  現在圖層已添加到地圖并可以編輯.

                  Now the layers are added to the map and editable.

                  這里有一個示例:

                      var drawnItems = new L.FeatureGroup();
                      map.addLayer(drawnItems);
                  
                      var polyLayers = [];
                  
                      var polygon1 = L.polygon([
                          [51.509, -0.08],
                          [51.503, -0.06],
                          [51.51, -0.047]
                      ]);
                      polyLayers.push(polygon1)
                  
                      var polygon2 = L.polygon([
                          [51.512642, -0.099993],
                          [51.520387, -0.087633],
                          [51.509116, -0.082483]
                      ]);
                      polyLayers.push(polygon2)
                  
                      // Add the layers to the drawnItems feature group 
                      for(let layer of polyLayers) {
                          drawnItems.addLayer(layer); 
                      }
                  

                  這篇關于將現有的傳單多邊形添加到現有的傳單圖層的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 圖層控件添加到側邊欄)

                • <tfoot id='1N9fu'></tfoot>
                    <legend id='1N9fu'><style id='1N9fu'><dir id='1N9fu'><q id='1N9fu'></q></dir></style></legend>

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

                      <small id='1N9fu'></small><noframes id='1N9fu'>

                            <bdo id='1N9fu'></bdo><ul id='1N9fu'></ul>
                            主站蜘蛛池模板: 国产亚洲网站 | 一本久久a久久精品亚洲 | 日本高清中文字幕 | 国久久 | 9久久精品 | 免费黄色录像视频 | 99久久免费精品视频 | 久久综合入口 | 久草精品视频 | 亚洲成人国产综合 | 中日字幕大片在线播放 | 精品成人免费一区二区在线播放 | 伊人免费在线观看 | 国产午夜精品视频 | 黄色免费av| 日屁网站 | 一区二区三区欧美 | 国产乱码精品一区二区三区忘忧草 | 澳门永久av免费网站 | 人人爽日日躁夜夜躁尤物 | 亚洲成人一区二区三区 | 91在线精品一区二区 | 国产在线1 | 日韩中文字幕免费 | 中文字幕视频在线免费 | 一区二区电影网 | 精品久久久久久久久久久久 | 国产精品99久久久久 | 成年女人免费v片 | 一级在线观看 | 国产精品一区一区 | 欧美性受xxxx | 久久精品视频在线播放 | 成人1区2区| 日本视频免费 | 亚洲综合五月天婷婷 | 狠狠的操| 成人在线免费观看 | 黄色三级免费网站 | 免费一级片 | 91在线免费视频 |