久久久久久久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>
                            主站蜘蛛池模板: 狠狠综合网 | 九九色综合| 亚洲视频欧美视频 | 精品久久国产老人久久综合 | 国产精品精品视频 | 免费成人高清在线视频 | 草草网| 国产精品久久久久无码av | www性色| 日日夜夜影院 | 精品久久久一区 | 中文字幕精品一区二区三区在线 | 日韩精品一区在线 | 在线啊v| 亚洲欧美中文日韩在线v日本 | www.久久99| www国产成人免费观看视频 | 亚洲国产视频一区二区 | 国产日韩欧美精品一区二区三区 | 亚洲国产精品一区二区第一页 | 免费观看的av毛片的网站 | 日韩免费网站 | 亚洲综合国产精品 | 国产精品久久网 | 亚洲一区播放 | 久久99国产精品久久99果冻传媒 | 欧美久久精品 | 国产精品伦一区二区三级视频 | 欧美精品一区二区三区蜜桃视频 | 欧美成年视频 | 欧洲国产精品视频 | 国产精品视频播放 | 免费中文字幕 | 免费的av网站 | 一级做a爰片性色毛片 | 亚洲精品自在在线观看 | 91久久北条麻妃一区二区三区 | 红色av社区 | 色视频在线播放 | 久草免费福利 | 国产精品久久性 |