久久久久久久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 圖層控件添加到側(cè)邊欄

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

            • <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 圖層控件添加到側(cè)邊欄的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

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

                  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 元素并將其添加到新的父級.您可以直接對側(cè)邊欄執(zhí)行此操作.

                  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.

                  這篇關(guān)于將 Leaflet 圖層控件添加到側(cè)邊欄的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Check if a polygon point is inside another in leaflet(檢查一個多邊形點是否在傳單中的另一個內(nèi)部)
                  Changing leaflet markercluster icon color, inheriting the rest of the default CSS properties(更改傳單標記群集圖標顏色,繼承其余默認 CSS 屬性)
                  Trigger click on leaflet marker(觸發(fā)點擊傳單標記)
                  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 - 在彈出窗口中獲取標記的緯度和經(jīng)度)

                    <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爰片久久毛片潮喷 | 亚洲人人 | 999国产视频 | 激情在线视频 | 国产在线永久免费 | 国产精品视频一区二区三区 | 欧美一区二区三区在线观看 | 一区二区三区久久 | 成人在线免费视频观看 | 欧美九九九 | 99re视频在线 | 韩国av一区二区 | a级毛片毛片免费观看久潮喷 | 中文字幕观看 | 美女黄网站 | 91一区二区| 国产精品高清在线 | 第一色在线| 精产国产伦理一二三区 | 91观看| 97人澡人人添人人爽欧美 | 国产欧美日韩综合精品一区二区 | 视频一区二区在线观看 | 人人澡视频 | 91精品导航 | 免费一级片 | 成人国产a | 欧美成人一级视频 | 亚洲视频在线免费观看 | 在线成人免费观看 | 国产一区二区黑人欧美xxxx | 碰碰视频 | 国产精品永久免费 | 在线观看视频h | 日韩国产一区 | 久久鲁视频 | 精品国产一区二区三区四区在线 | 亚洲国产一区二区三区在线观看 | 久久精品色欧美aⅴ一区二区 | 免费麻豆视频 | 久久一区二区三区四区 |