久久久久久久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'>

                            主站蜘蛛池模板: 国产精品欧美日韩 | 国产一区二区三区 | 亚洲精品www| 天天草av | 天天躁日日躁狠狠躁白人 | 99re在线 | 岛国av免费在线观看 | 国产日韩欧美 | 国产一区二区三区免费观看在线 | 人人操日日干 | 国产精品国产a级 | 国产精品免费一区二区三区四区 | 日韩福利片| 日韩精品二区 | 狠狠色香婷婷久久亚洲精品 | 视频在线观看亚洲 | 久久精品成人 | 亚洲国产成人精品女人久久久 | 日本一区精品 | 国产在线精品一区 | 超碰在线人 | 国产一区二区三区四区三区四 | 欧美久久免费观看 | 欧美日韩一区二区在线播放 | 久久国产日韩欧美 | 免费一区二区三区 | 欧美精品第一区 | 羞羞视频网页 | 欧美激情精品久久久久久免费 | 正在播放国产精品 | 成人国产精品色哟哟 | 男人天堂网址 | 成人亚洲一区 | 秋霞a级毛片在线看 | 欧美无乱码久久久免费午夜一区 | 99久久婷婷| 欧美亚洲免费 | 免费观看色 | 一区二区三区观看视频 | 日本特黄a级高清免费大片 特黄色一级毛片 | 欧美在线观看免费观看视频 |