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

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

      <small id='9qqaj'></small><noframes id='9qqaj'>

    2. <legend id='9qqaj'><style id='9qqaj'><dir id='9qqaj'><q id='9qqaj'></q></dir></style></legend>

      <tfoot id='9qqaj'></tfoot>
        <bdo id='9qqaj'></bdo><ul id='9qqaj'></ul>

      基于 Leaflet 和 AngularJS 的地圖未正確加載

      Map based on Leaflet and AngularJS not loaded correctly(基于 Leaflet 和 AngularJS 的地圖未正確加載)
      <tfoot id='kujB8'></tfoot>
          <tbody id='kujB8'></tbody>

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

              • <bdo id='kujB8'></bdo><ul id='kujB8'></ul>
                <legend id='kujB8'><style id='kujB8'><dir id='kujB8'><q id='kujB8'></q></dir></style></legend>
                本文介紹了基于 Leaflet 和 AngularJS 的地圖未正確加載的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                我的基于 Leaflet 和 AngularJS 的地圖沒(méi)有正確加載.我不知道發(fā)生了什么,但地圖圖塊沒(méi)有按應(yīng)有的方式布置.

                My map based on Leaflet and AngularJS is not loading correctly. I do not know what's going on but the maps tiles are not laid out as they should be.

                這是底圖:

                這是我的代碼:

                    function setMapPosition(){
                        $scope.center = {
                            lat: 51.505,
                                lng: -0.09,
                                zoom: 8
                        };
                
                
                        $scope.defaults= {
                            scrollWheelZoom: false
                        };
                
                        $scope.tiles = 'openstreetmap';
                    }
                

                推薦答案

                這個(gè)問(wèn)題通常是由于在地圖已經(jīng)初始化時(shí)調(diào)整了任何父容器的大小.

                This problem often occurs due to resizing of any parent container while the map is already initialized.

                為了告訴地圖有調(diào)整大小,您可以調(diào)用 map.invalidateSize();.

                In order to tell the map that there was a resize you can call map.invalidateSize();.

                也可能是您沒(méi)有手動(dòng)調(diào)整任何父容器的大小,那么可能的解決方案是在文檔準(zhǔn)備好后調(diào)用 map.invalidateSize();.

                It could also be that you didn't resize any parent container manually, then a possible solution would be to call map.invalidateSize(); after your document is ready.

                要使用 angular-leaflet-directive 執(zhí)行此操作,請(qǐng)?jiān)诳刂破髦袊L試以下操作注入 leafletData.:

                To do this with the angular-leaflet-directive try the following inside your controller which injects leafletData.:

                leafletData.getMap().then(function(map) {
                    map.invalidateSize(false);
                });
                

                這篇關(guān)于基于 Leaflet 和 AngularJS 的地圖未正確加載的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(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è)邊欄)

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

                1. <legend id='r3Jo4'><style id='r3Jo4'><dir id='r3Jo4'><q id='r3Jo4'></q></dir></style></legend>
                      <tbody id='r3Jo4'></tbody>

                      • <i id='r3Jo4'><tr id='r3Jo4'><dt id='r3Jo4'><q id='r3Jo4'><span id='r3Jo4'><b id='r3Jo4'><form id='r3Jo4'><ins id='r3Jo4'></ins><ul id='r3Jo4'></ul><sub id='r3Jo4'></sub></form><legend id='r3Jo4'></legend><bdo id='r3Jo4'><pre id='r3Jo4'><center id='r3Jo4'></center></pre></bdo></b><th id='r3Jo4'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='r3Jo4'><tfoot id='r3Jo4'></tfoot><dl id='r3Jo4'><fieldset id='r3Jo4'></fieldset></dl></div>
                          <bdo id='r3Jo4'></bdo><ul id='r3Jo4'></ul>
                          <tfoot id='r3Jo4'></tfoot>
                          主站蜘蛛池模板: 国产精产国品一二三产区视频 | 亚洲一区二区欧美 | 精品欧美一区二区三区久久久 | 日本在线视频中文字幕 | 亚洲欧美日韩成人在线 | 久久综合狠狠综合久久综合88 | 欧洲视频一区二区 | 欧美精品免费观看二区 | 亚洲精品一区二区网址 | 一级欧美 | 国产一区二区三区视频免费观看 | 992tv人人草| 精品电影 | 成人免费共享视频 | 久草在线在线精品观看 | 99精品一级欧美片免费播放 | 欧美成人aaa级毛片在线视频 | 欧美日韩精品在线免费观看 | 91免费电影 | 亚洲国产aⅴ精品 | 国产精品视频一区二区三区四蜜臂 | 黄视频国产 | 91精品久久久久 | 365夜爽爽欧美性午夜免费视频 | 久久99精品久久久久久噜噜 | 欧美视频偷拍 | 黄色免费在线网址 | 国产午夜久久久 | 久久久久久av | 久久久久国产一区二区三区四区 | 日本啊v在线| 色综合久久久 | 日日干日日 | 久久机热 | 91在线精品一区二区 | 91.色| 精品欧美乱码久久久久久 | 久久久久久久久久久国产 | 中文福利视频 | 五月婷婷激情网 | 视频一区二区三区中文字幕 |