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

      <legend id='kCTZ6'><style id='kCTZ6'><dir id='kCTZ6'><q id='kCTZ6'></q></dir></style></legend>
    1. <small id='kCTZ6'></small><noframes id='kCTZ6'>

      • <bdo id='kCTZ6'></bdo><ul id='kCTZ6'></ul>
      <tfoot id='kCTZ6'></tfoot>
      <i id='kCTZ6'><tr id='kCTZ6'><dt id='kCTZ6'><q id='kCTZ6'><span id='kCTZ6'><b id='kCTZ6'><form id='kCTZ6'><ins id='kCTZ6'></ins><ul id='kCTZ6'></ul><sub id='kCTZ6'></sub></form><legend id='kCTZ6'></legend><bdo id='kCTZ6'><pre id='kCTZ6'><center id='kCTZ6'></center></pre></bdo></b><th id='kCTZ6'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='kCTZ6'><tfoot id='kCTZ6'></tfoot><dl id='kCTZ6'><fieldset id='kCTZ6'></fieldset></dl></div>
      1. 自定義leaflet.js中的放大/縮小按鈕

        Customize Zoom in/out button in leaflet.js(自定義leaflet.js中的放大/縮小按鈕)
      2. <tfoot id='ZRxst'></tfoot>
        <i id='ZRxst'><tr id='ZRxst'><dt id='ZRxst'><q id='ZRxst'><span id='ZRxst'><b id='ZRxst'><form id='ZRxst'><ins id='ZRxst'></ins><ul id='ZRxst'></ul><sub id='ZRxst'></sub></form><legend id='ZRxst'></legend><bdo id='ZRxst'><pre id='ZRxst'><center id='ZRxst'></center></pre></bdo></b><th id='ZRxst'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ZRxst'><tfoot id='ZRxst'></tfoot><dl id='ZRxst'><fieldset id='ZRxst'></fieldset></dl></div>

          1. <small id='ZRxst'></small><noframes id='ZRxst'>

            • <bdo id='ZRxst'></bdo><ul id='ZRxst'></ul>
                <tbody id='ZRxst'></tbody>
              <legend id='ZRxst'><style id='ZRxst'><dir id='ZRxst'><q id='ZRxst'></q></dir></style></legend>

                1. 本文介紹了自定義leaflet.js中的放大/縮小按鈕的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試自定義縮放控制 (+/-),因此它應該像 Google 地圖一樣出現在右側 (https:///www.google.com/maps/)

                  I am trying to customize zoom control (+/-), so it should appear in the right side like Google maps (https://www.google.com/maps/)

                  我嘗試添加 float:right; 但沒有成功.

                  I tried to add float:right; but it didn't work.

                  來自 CSS 文件:

                  /* zoom control */
                  
                  .leaflet-control-zoom-in,
                  .leaflet-control-zoom-out {
                    font: bold 18px 'Lucida Console', Monaco, monospace;
                    text-indent: 1px;
                    }
                  .leaflet-control-zoom-out {
                    font-size: 20px;
                    }
                  
                  .leaflet-touch .leaflet-control-zoom-in {
                    font-size: 22px;
                    }
                  .leaflet-touch .leaflet-control-zoom-out {
                    font-size: 24px;
                    }
                  

                  http://jsfiddle.net/hsy7v/1/

                  推薦答案

                  你的放大/縮小控件被絕對定位的元素包裹著 left:0 (由于 .leaflet-left 類),所以 float:left 無濟于事,您可以通過 right:0 覆蓋 left:0 或更改 來將其右對齊>.leaflet-left 類到 .leaflet-right

                  Your zoom in/out controls are wrapped with absolutely positioned element with left:0 (due to .leaflet-left class), so float:left wouldn't help, you could align it to right by overriding left:0 by right:0, or changing .leaflet-left class to .leaflet-right

                  但更正確的方法是使用提供的 api.

                  But more correct way would be to use provided api.

                  //disable zoomControl when initializing map (which is topleft by default)
                  var map = L.map("map", {
                      zoomControl: false
                      //... other options
                  });
                  
                  //add zoom control with your options
                  L.control.zoom({
                       position:'topright'
                  }).addTo(map);
                  

                  查看更新的 fiddle

                  您使用的庫的 api 參考可以在 這里

                  api reference for the library you use can be found here

                  這篇關于自定義leaflet.js中的放大/縮小按鈕的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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添加到傳單層)
                  Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側邊欄)

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

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

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

                            主站蜘蛛池模板: 国产三级一区二区三区 | 亚洲国产欧美一区二区三区久久 | 草草草久久久 | 国产精品成人一区二区三区 | 国产精品久久久久久久久久久久久 | 韩国电影久久 | 精品一区二区三区四区在线 | 在线观看av不卡 | 亚洲精品一区二区三区蜜桃久 | wwwww在线观看 | 精品日韩一区二区三区 | 亚洲高清在线免费观看 | 国产成人精品免费视频大全最热 | 久久免费大片 | 久久精品国产亚洲夜色av网站 | 日本不卡在线视频 | 国产精品久久精品 | 国产精品日韩欧美 | 久久久精品影院 | 精品在线一区 | 国产成人精品久久二区二区91 | 麻豆精品一区二区三区在线观看 | 99热这里都是精品 | 精品中文字幕一区二区三区 | 91精品国产91久久久久久丝袜 | 视频一区中文字幕 | 中文字幕国产高清 | av大全在线 | 拍真实国产伦偷精品 | 色婷婷激情综合 | 久久高清精品 | 亚洲免费视频网站 | 国产精品影视在线观看 | a看片 | 视频一二区 | 久久精品亚洲 | 91夜夜夜| 91大神新作在线观看 | 亚洲精品一级 | 欧美精品一 | 91在线精品一区二区 |