pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

<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="fnbj57x" 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="lhh5pdd" 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="l77p777" 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>
                            主站蜘蛛池模板: 整车VOC采样环境舱-甲醛VOC预处理舱-多舱法VOC检测环境仓-上海科绿特科技仪器有限公司 | 中空玻璃生产线,玻璃加工设备,全自动封胶线,铝条折弯机,双组份打胶机,丁基胶/卧式/立式全自动涂布机,玻璃设备-山东昌盛数控设备有限公司 | 炉门刀边腹板,焦化设备配件,焦化焦炉设备_沧州瑞创机械制造有限公司 | 中医治疗皮肤病_潍坊银康医院「山东」重症皮肤病救治平台 | 恒温恒湿箱(药品/保健品/食品/半导体/细菌)-兰贝石(北京)科技有限公司 | 老城街小面官网_正宗重庆小面加盟技术培训_特色面馆加盟|牛肉拉面|招商加盟代理费用多少钱 | 全自动包装秤_全自动上袋机_全自动套袋机_高位码垛机_全自动包装码垛系统生产线-三维汉界机器(山东)股份有限公司 | 流水线电子称-钰恒-上下限报警电子秤-上海宿衡实业有限公司 | 合肥升降机-合肥升降货梯-安徽升降平台「厂家直销」-安徽鼎升自动化科技有限公司 | 爆破器材运输车|烟花爆竹运输车|1-9类危险品厢式运输车|湖北江南专用特种汽车有限公司 | 昆山PCB加工_SMT贴片_PCB抄板_线路板焊接加工-昆山腾宸电子科技有限公司 | 玄米影院| 金蝶帐无忧|云代账软件|智能财税软件|会计代账公司专用软件 | 土壤肥料养分速测仪_测土配方施肥仪_土壤养分检测仪-杭州鸣辉科技有限公司 | HDPE土工膜,复合土工膜,防渗膜价格,土工膜厂家-山东新路通工程材料有限公司 | 电脑知识|软件|系统|数据库|服务器|编程开发|网络运营|知识问答|技术教程文章 - 好吧啦网 | 山东钢格板|栅格板生产厂家供应商-日照森亿钢格板有限公司 | 医用酒精_84消毒液_碘伏消毒液等医用消毒液-漓峰消毒官网 | 转向助力泵/水泵/发电机皮带轮生产厂家-锦州华一精工有限公司 | 四探针电阻率测试仪-振实密度仪-粉末流动性测定仪-宁波瑞柯微智能 | 测试治具|过炉治具|过锡炉治具|工装夹具|测试夹具|允睿自动化设备 | 打孔器,打孔钳厂家【温州新星德牌五金工具】 | 高精度电阻回路测试仪-回路直流电阻测试仪-武汉特高压电力科技有限公司 | 开云(中国)Kaiyun·官方网站 - 登录入口 | 密集架|电动密集架|移动密集架|黑龙江档案密集架-大量现货厂家销售 | WTB5光栅尺-JIE WILL磁栅尺-B60数显表-常州中崴机电科技有限公司 | 电地暖-电采暖-发热膜-石墨烯电热膜品牌加盟-暖季地暖厂家 | 电池挤压试验机-自行车喷淋-车辆碾压试验装置-深圳德迈盛测控设备有限公司 | 小威小说网 - 新小威小说网 - 小威小说网小说搜索引擎 | 南昌旅行社_南昌国际旅行社_南昌国旅在线 | 成都茶楼装修公司 - 会所设计/KTV装修 - 成都朗煜装饰公司 | 电动卫生级调节阀,电动防爆球阀,电动软密封蝶阀,气动高压球阀,气动对夹蝶阀,气动V型调节球阀-上海川沪阀门有限公司 | 成都租车_成都租车公司_成都租车网_众行宝| LHH药品稳定性试验箱-BPS系列恒温恒湿箱-意大利超低温冰箱-上海一恒科学仪器有限公司 | 高压无油空压机_无油水润滑空压机_水润滑无油螺杆空压机_无油空压机厂家-科普柯超滤(广东)节能科技有限公司 | 氧化锆纤维_1800度高温退火炉_1800度高温烧结炉-南京理工宇龙新材料股份有限公司 | Type-c防水母座|贴片母座|耳机接口|Type-c插座-深圳市步步精科技有限公司 | 工业硝酸钠,硝酸钠厂家-淄博「文海工贸」 | 捆扎机_气动捆扎机_钢带捆扎机-沈阳海鹞气动钢带捆扎机公司 | 上海办公室设计_办公楼,写字楼装修_办公室装修公司-匠御设计 | 杭州门窗厂家_阳光房_包阳台安装电话-杭州窗猫铝合金门窗 |