久久久久久久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中的放大/縮小按鈕的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在嘗試自定義縮放控制 (+/-),因此它應(yīng)該像 Google 地圖一樣出現(xiàn)在右側(cè) (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 無濟(jì)于事,您可以通過 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

                  這篇關(guān)于自定義leaflet.js中的放大/縮小按鈕的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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(檢查一個(gè)多邊形點(diǎn)是否在傳單中的另一個(gè)內(nèi)部)
                  Changing leaflet markercluster icon color, inheriting the rest of the default CSS properties(更改傳單標(biāo)記群集圖標(biāo)顏色,繼承其余默認(rèn) CSS 屬性)
                  Trigger click on leaflet marker(觸發(fā)點(diǎn)擊傳單標(biāo)記)
                  How can I change the default loading tile color in LeafletJS?(如何更改 LeafletJS 中的默認(rèn)加載磁貼顏色?)
                  Add external geojson to leaflet layer(將外部geojson添加到傳單層)
                  Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側(cè)邊欄)

                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>

                            主站蜘蛛池模板: 玖玖伊人| 中文字幕在线观看不卡 | 黄色片免费观看 | 亚洲激情欧美激情 | 国产精品视频网站 | 午夜看片 | 成人午夜激情 | 69成人网 | 国产乱码一区二区三区 | 欧美啪啪网 | 成人免费网站在线观看 | a视频在线 | 91在线亚洲| 日本不卡二区 | 日本a视频 | 成人黄色在线观看 | 午夜视频免费 | av网站免费看 | 久久五月婷 | 91插插插插插 | 毛片中文字幕 | 一区二区免费视频 | 欧美久久一区 | 一级毛片网 | 国产理论在线观看 | 亚洲在线免费 | 国产高清在线视频 | 日韩欧美专区 | a级片在线| 手机看片欧美 | 69免费视频| 一级肉体裸体bbbb | 亚洲美女在线视频 | 国产日韩视频 | 国产一级一片免费播放放a 免费国产视频 | 亚洲v视频| 日日干天天射 | 日韩影音 | 四虎四虎| 一区二区精品 | 国产成人综合在线 |