久久久久久久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>
                            主站蜘蛛池模板: 久久久久久久免费视频 | 欧美又大又硬又粗bbbbb | 91动漫在线观看 | 青青草福利视频 | 免费啪视频 | 久久理论片| 黄色片网站在线观看 | 天天摸天天爽 | 亚洲男人av | 国产午夜在线 | 亚洲视频在线免费观看 | 夜夜操夜夜 | 天堂网中文字幕 | www亚洲天堂 | 精品免费在线 | 亚洲国产精品久久久久 | 91视频亚洲 | 欧美在线网址 | 欧美专区在线观看 | 日本黄a三级三级三级 | 欧美美女视频 | 少妇av在线| 欧美精品综合 | 一区在线视频 | 狠狠插狠狠操 | 国产精品免费av | 人人草人人干 | 国产成人在线免费视频 | 色姑娘综合| 日本国产在线观看 | 中文字幕在线观看一区二区 | 国产一区二区日韩 | 天堂91 | 美国特色黄a大片 | 成人午夜毛片 | 日韩欧美在线视频 | 欧美日韩中文字幕在线 | 国产在线一 | 亚洲国产一区在线 | 草草免费视频 | 国产tv |