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

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

    <legend id='eDxpv'><style id='eDxpv'><dir id='eDxpv'><q id='eDxpv'></q></dir></style></legend>
      <bdo id='eDxpv'></bdo><ul id='eDxpv'></ul>

      <tfoot id='eDxpv'></tfoot>
      1. <i id='eDxpv'><tr id='eDxpv'><dt id='eDxpv'><q id='eDxpv'><span id='eDxpv'><b id='eDxpv'><form id='eDxpv'><ins id='eDxpv'></ins><ul id='eDxpv'></ul><sub id='eDxpv'></sub></form><legend id='eDxpv'></legend><bdo id='eDxpv'><pre id='eDxpv'><center id='eDxpv'></center></pre></bdo></b><th id='eDxpv'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='eDxpv'><tfoot id='eDxpv'></tfoot><dl id='eDxpv'><fieldset id='eDxpv'></fieldset></dl></div>
      2. Leaflet.draw 映射:如何在沒有工具欄的情況下啟動繪

        Leaflet.draw mapping: How to initiate the draw function without toolbar?(Leaflet.draw 映射:如何在沒有工具欄的情況下啟動繪圖功能?)

        1. <tfoot id='LjzI8'></tfoot>
            <tbody id='LjzI8'></tbody>

            • <legend id='LjzI8'><style id='LjzI8'><dir id='LjzI8'><q id='LjzI8'></q></dir></style></legend>

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

                <i id='LjzI8'><tr id='LjzI8'><dt id='LjzI8'><q id='LjzI8'><span id='LjzI8'><b id='LjzI8'><form id='LjzI8'><ins id='LjzI8'></ins><ul id='LjzI8'></ul><sub id='LjzI8'></sub></form><legend id='LjzI8'></legend><bdo id='LjzI8'><pre id='LjzI8'><center id='LjzI8'></center></pre></bdo></b><th id='LjzI8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='LjzI8'><tfoot id='LjzI8'></tfoot><dl id='LjzI8'><fieldset id='LjzI8'></fieldset></dl></div>
                • <bdo id='LjzI8'></bdo><ul id='LjzI8'></ul>
                  本文介紹了Leaflet.draw 映射:如何在沒有工具欄的情況下啟動繪圖功能?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  對于任何使用過傳單或傳單.draw 插件的人:

                  For anyone experienced with leaflet or leaflet.draw plugin:

                  我想在不使用 leaflet.draw 的工具欄的情況下開始繪制多邊形.我已經設法通過在線搜索(不在主文檔中)找到允許在不使用工具欄(layer.editing.enable();)的情況下進行編輯的屬性.如果沒有工具欄按鈕,我似乎無法找到如何開始繪制多邊形.任何幫助將不勝感激!

                  I want to initiate drawing a polygon without using the toolbar from leaflet.draw. I've managed to find the property that allows editing without using the toolbar (layer.editing.enable();) by searching online (it's not in the main documentation). I can't seem to find how to begin drawing a polygon without the toolbar button. Any help would be much appreciated!

                  謝謝你:)

                  推薦答案

                  這個簡單的代碼對我有用:

                  This simple code works for me:

                  new L.Draw.Polyline(map, drawControl.options.polyline).enable();
                  

                  只需將其放入自定義按鈕的 onclick 處理程序(或任何您想要的位置).

                  Just put it into the onclick handler of your custom button (or wherever you want).

                  變量 mapdrawControl 是對您的傳單地圖和繪圖控件的引用.

                  The variables map and drawControl are references to your leaflet map and draw control.

                  深入研究源代碼 (leaflet.draw-src.js),您可以找到繪制其他元素以及編輯或刪除它們的函數.

                  Diving into the source code (leaflet.draw-src.js) you can find the functions to draw the other elements and to edit or delete them.

                  new L.Draw.Polygon(map, drawControl.options.polygon).enable()
                  new L.Draw.Rectangle(map, drawControl.options.rectangle).enable()
                  new L.Draw.Circle(map, drawControl.options.circle).enable()
                  new L.Draw.Marker(map, drawControl.options.marker).enable()
                  
                  new L.EditToolbar.Edit(map, {
                                  featureGroup: drawControl.options.featureGroup,
                                  selectedPathOptions: drawControl.options.edit.selectedPathOptions
                              })
                  new L.EditToolbar.Delete(map, {
                                  featureGroup: drawControl.options.featureGroup
                              })
                  

                  我希望這對你也有用.

                  L.EditToolbar.EditL.EditToolbar.Delete 類公開了以下有用的方法:

                  The L.EditToolbar.Edit and L.EditToolbar.Delete classes expose the following useful methods:

                  • enable():啟動編輯/刪除模式
                  • disable():返回標準模式
                  • save():保存更改(觸發 draw:edited/draw:deleted 事件)
                  • revertLayers():撤消更改

                  這篇關于Leaflet.draw 映射:如何在沒有工具欄的情況下啟動繪圖功能?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                  Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                  Detect FLASH plugin crashes(檢測 FLASH 插件崩潰)

                    <legend id='ehFMQ'><style id='ehFMQ'><dir id='ehFMQ'><q id='ehFMQ'></q></dir></style></legend>
                    • <tfoot id='ehFMQ'></tfoot>
                      • <bdo id='ehFMQ'></bdo><ul id='ehFMQ'></ul>

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

                              <tbody id='ehFMQ'></tbody>

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

                            主站蜘蛛池模板: 一区二区日韩 | 成人欧美 | 亚洲午夜精品 | 中文字幕在线视频观看 | 欧美精品一区二区在线观看 | 免费精品久久久久久中文字幕 | 影音先锋亚洲资源 | 色天堂视频| 国产清纯白嫩初高生视频在线观看 | 玖玖视频网 | 日韩亚洲视频在线 | 有码一区 | 台湾a级理论片在线观看 | 日韩精品 电影一区 亚洲 | 国产精品美女久久久久久久网站 | 国产精品免费看 | 国产精品久久久久久久久久妞妞 | 欧美一区二区在线免费观看 | 久久高清国产视频 | 精品欧美乱码久久久久久1区2区 | 精品一区二区三区在线视频 | 亚洲福利在线观看 | 亚洲国产一区二区在线 | 四虎影院在线免费观看 | 国产欧美视频一区二区三区 | 亚洲第一成年免费网站 | 中文字幕一区在线观看视频 | 日本三级做a全过程在线观看 | 特黄特黄a级毛片免费专区 av网站免费在线观看 | 三级视频久久 | 精品国产欧美一区二区 | 成人精品视频在线 | 日韩一区在线观看视频 | 久久免费精品 | 亚洲第一色站 | 亚洲国产精品精华素 | 九色综合网 | 久久精品视频在线免费观看 | 久久久久久久夜 | 伊人久久综合 | 午夜无码国产理论在线 |