久久久久久久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>
                          主站蜘蛛池模板: 国产精品成人久久久久a级 久久蜜桃av一区二区天堂 | 久久精品免费一区二区三 | 亚洲精品乱码久久久久久黑人 | 99热在线免费 | 日韩在线免费 | 91人人看 | 婷婷色国产偷v国产偷v小说 | 1级黄色大片 | 久久夜视频 | 国产免费又黄又爽又刺激蜜月al | 日韩波多野结衣 | 免费在线观看一区二区 | 亚洲国产成人精品女人久久久 | 国产日韩欧美二区 | 日本高清中文字幕 | 亚洲国产精品视频 | 国产精品久久久久久久久久久久午夜片 | 在线视频日韩精品 | 黑人巨大精品欧美一区二区免费 | 俺去俺来也www色官网cms | 精品自拍视频在线观看 | 精品国产乱码一区二区三区 | 久久综合久 | 视频一区在线 | 国产99久久精品一区二区300 | 在线国产精品一区 | 日韩一区二区三区视频在线观看 | 欧美一区免费 | 欧美一区二区三区视频 | 中文字幕欧美一区二区 | 8x国产精品视频一区二区 | 成人在线视频一区二区三区 | 精品久久一区二区三区 | 91p在线观看 | 久日精品| 91看片在线观看 | 国产视频久久久 | 亚洲欧美久久 | 日日日日操 | 欧美日韩久 | 欧美夜夜 |