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

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

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

        傳單地圖未顯示在引導(dǎo) div 中

        Leaflet Map not showing in bootstrap div(傳單地圖未顯示在引導(dǎo) div 中)

        <tfoot id='AZdkp'></tfoot>
        1. <legend id='AZdkp'><style id='AZdkp'><dir id='AZdkp'><q id='AZdkp'></q></dir></style></legend>

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

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

                • 本文介紹了傳單地圖未顯示在引導(dǎo) div 中的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  這是一個(gè)我無法弄清楚的超級(jí)奇怪的問題.我的 div 帶有地圖及其 css 樣式.Leaflet 地圖顯示在一個(gè)矩形中,而不是在 div 中.好像 z 索引是錯(cuò)誤的,但我無法弄清楚.JS 在 document.ready 函數(shù)中.我在地圖 div 周圍添加了一個(gè)邊框,只是為了展示一切是如何關(guān)閉的.

                  CSS:

                  #map {width:100%;height:100%;margin-left:10px;margin-top:40px}

                  HTML:

                   

                  JS:

                  var map=L.map('map',{最小縮放:2,最大縮放:18}).setView([x,y],16);var buildingIcon=L.icon({iconUrl:'/images/bicon.png',圖標(biāo)大小:[25,40],popupAnchor: [-3, -20],圖標(biāo)錨:[14, 38]});L.marker(x,y],{圖標(biāo):建筑圖標(biāo),標(biāo)題:城鎮(zhèn),州"}).bindPopup('<b>first last</b><br>Email: 電子郵件地址<br>Cell: 電話號(hào)碼').addTo(地圖);mapLink='<a href="http://openstreetmap.org">OpenStreetMap</a>';L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '地圖數(shù)據(jù)和副本;' + 地圖鏈接,最大縮放:18}).addTo(地圖);

                  我已經(jīng)修復(fù)了重疊問題,但最后一個(gè)問題仍然存在,即,

                  當(dāng)頁面加載并在 document.ready() 上呈現(xiàn)地圖時(shí),地圖僅在屏幕的左上角可見.如果我更改瀏覽器的大小(最大化、最小化),那么地圖會(huì)正確刷新.

                  解決方案

                  地圖打開后執(zhí)行以下函數(shù):

                  map.invalidateSize();

                  這將解決您的問題.

                  This is a super odd problem that I can not figure out. I have my div with the map and its css styling. The Leaflet map is showing up in one rectangle and not in the div. Its as if the z index is wrong, but I can not figure it out. The JS is in the document.ready function. I added a border around the map div just to show how off everything is.

                  CSS:

                  #map {width:100%;height:100%;margin-left:10px;margin-top:40px}
                  

                  HTML:

                    <div id="showTravel" class="row" style="display:none">
                          <div class="col-lg-12">
                              <div class="wrapper wrapper-content">
                          <h2 style="margin-top:-18px">All Travelers</h2>
                          <div id="travelContent">
                              <div id=map></div>
                          </div>
                              </div>
                          </div>
                      </div>
                  

                  JS:

                  var map=L.map('map',{
                          minZoom:2,
                      maxZoom:18
                  }).setView([x,y],16);
                  
                  var buildingIcon=L.icon({
                      iconUrl:'/images/bicon.png',
                      iconSize:[25,40],
                      popupAnchor: [-3, -20],
                      iconAnchor: [14, 38]
                  });
                  
                  L.marker(x,y],{
                      icon:buildingIcon,
                      title:'town, state'
                  })
                  .bindPopup('<b>first last</b><br>Email: email address<br>Cell: phone number')
                  .addTo(map);
                  
                  mapLink='<a href="http://openstreetmap.org">OpenStreetMap</a>';
                  
                  L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
                      attribution: 'Map data &copy; ' + mapLink,
                      maxZoom:18
                  }).addTo(map);
                  

                  I have fixed the overlapping problem, but the last problem still exists i.e.,

                  When the page loads and the map is rendered on the document.ready() the map is only visible in the top left corner of the screen. And If I changes the size of the browser (maximize,minimize) then the map refreshes correctly.

                  解決方案

                  Execute the following function once the map is opened:

                  map.invalidateSize();
                  

                  This will fix your problem.

                  這篇關(guān)于傳單地圖未顯示在引導(dǎo) div 中的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(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è)邊欄)
                      <tbody id='A5zOO'></tbody>

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

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

                            主站蜘蛛池模板: 一区二区国产精品 | 免费一区二区三区 | 四虎国产 | av色噜噜| 国产精品久久久久久久久久东京 | 国产 日韩 欧美 在线 | 久久久.com| 国产二区av | 欧美午夜影院 | 成人欧美一区二区三区黑人孕妇 | 亚洲狠狠 | 全免费a级毛片免费看视频免 | 亚洲精品久久久久久久久久久 | 最新日韩精品 | 日韩激情在线 | 中文字幕在线一区二区三区 | 九色91视频 | avhd101在线成人播放 | 久久精品一区二区视频 | 红桃视频一区二区三区免费 | 男女羞羞视频在线观看 | 一级一级毛片免费看 | 欧美精品一级 | 国产一区二区三区在线观看免费 | 婷婷久久网 | 羞羞的视频在线观看 | 久色视频在线观看 | 日韩国产欧美一区 | 国产91丝袜在线18 | 黄色三级在线播放 | 玖玖玖在线观看 | 久久精品国产亚洲一区二区三区 | 精彩视频一区二区三区 | 精品国产伦一区二区三区观看体验 | 亚洲免费精品 | 欧美中文字幕一区二区三区亚洲 | 国产福利小视频 | 亚洲超碰在线观看 | 国产成人av在线 | 国产精品久久久久久久久久久久久久 | 日韩欧美精品 |