久久久久久久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>
                            主站蜘蛛池模板: 日日日操| 午夜在线免费观看视频 | 一级a爱片久久毛片 | 日本午夜在线视频 | 欧美精品在线播放 | 精品99在线 | 成人福利网站 | 日韩欧美精品在线播放 | 久草免费在线视频 | 久久99久久| 国产精品一区二 | 日本中文字幕一区 | 91偷拍精品一区二区三区 | 色天天综合 | 亚洲精品中文字幕中文字幕 | 奇米超碰在线 | 亚洲精品久久久一区二区三区 | 一级亚洲| 91久久国产综合久久 | 欧美视频二区 | 日韩中文电影 | 91精品国产91久久久久久最新 | 三级视频网站 | 久久久久国产精品一区二区 | 蜜桃一区二区三区 | 日本欧美大片 | 日韩视频在线免费观看 | 91电影在线 | 日韩中文字幕高清 | 色婷婷九月 | 一级a毛片 | 欧美成人精品一区二区男人看 | 午夜男人天堂 | 视频一区在线观看 | 国产精品www | 精品久久久久久久人人人人传媒 | 亚洲综合网站 | 婷婷桃色网 | 欧美日韩国产免费 | 97精品一区二区 | 国产精品久久久久久久免费大片 |