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

<legend id='pxMt6'><style id='pxMt6'><dir id='pxMt6'><q id='pxMt6'></q></dir></style></legend>

  • <tfoot id='pxMt6'></tfoot>
    1. <small id='pxMt6'></small><noframes id='pxMt6'>

        • <bdo id='pxMt6'></bdo><ul id='pxMt6'></ul>

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

        將 Leaflet 圖層控件添加到側邊欄

        Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側邊欄)

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

                <tfoot id='BYwbY'></tfoot>
              • <small id='BYwbY'></small><noframes id='BYwbY'>

                  <tbody id='BYwbY'></tbody>
                • 本文介紹了將 Leaflet 圖層控件添加到側邊欄的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用 Leaflet sidebar V2 插件,我想知道是否可以將傳單圖層控制菜單放入側邊欄中?任何幫助是極大的贊賞!謝謝!

                  I'm using the Leaflet sidebar V2 plugin and am wondering if it is possible to put a leaflet layer control menu into the sidebar? Any help is greatly appreciated! Thanks!

                  推薦答案

                  只需使用 this 提示.它從地圖容器中刪除 L.control 元素并將其添加到新的父級.您可以直接對側邊欄執行此操作.

                  Just use this hint. It removes the L.control element from the map container and adds it to a new parent. You can do this for the sidebar straight forward.

                  HTML:

                   <div id="sidebar" class="sidebar collapsed">
                     <div class="sidebar-tabs">
                      <ul role="tablist">
                       <li>....</li>
                       <li>....</li>
                      </ul>
                   </div>
                   <div class="sidebar-content">
                     <div class="sidebar-pane" id="">  
                      <h1 class="sidebar-header">...</h1>
                      <div id="example"> <!--Here the layer control menu will be added--></div>    
                   </div>
                  </div>
                  

                  JS:

                  var layer = L.control.layers(baseMaps, overlayMaps).addTo(map);
                  
                    var htmlObject = layer.getContainer();
                    var a = document.getElementById('example')
                    function setParent(el, newParent){
                      newParent.appendChild(el);
                    }
                    setParent(htmlObject, a);
                  

                  對我來說,這個解決方案效果很好.

                  For me, this solution worked well.

                  這篇關于將 Leaflet 圖層控件添加到側邊欄的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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添加到傳單層)
                  Leaflet - get latitude and longitude of a marker inside a pop-up(Leaflet - 在彈出窗口中獲取標記的緯度和經度)

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

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

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

                          <tbody id='eJZOw'></tbody>
                            主站蜘蛛池模板: 国产精品一区二区三区在线 | 在线免费91 | 亚洲欧美一区二区三区国产精品 | 玖玖操| 成人在线观看免费视频 | 欧美日韩不卡在线 | 伊人免费观看视频 | 一区二区三区高清不卡 | 国产激情视频在线观看 | 伊色综合久久之综合久久 | 久久精品视频91 | 激情五月综合 | 天天干成人网 | 精品国产乱码久久久久久蜜柚 | h视频免费看 | 久久综合一区 | 亚洲国产精品一区 | 成人精品免费视频 | 午夜影院在线观看 | 国产精品久久久久久吹潮 | 一级毛片视频在线 | 欧美一区二区三区 | 日韩精品一二三区 | 亚洲精品久久久一区二区三区 | 天堂资源最新在线 | 在线观看视频中文字幕 | 91porn在线| 伊人网在线播放 | 中文字幕国产一区 | 国产丝袜一区二区三区免费视频 | 成人欧美一区二区三区在线观看 | 九九亚洲 | 毛片黄| 91资源在线观看 | 国产欧美在线视频 | 午夜视频一区 | 久久久久av| 狠狠av| 亚洲国产中文字幕 | 天堂av中文在线 | 国产性生活一级片 |