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

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

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

          <bdo id='sf3ef'></bdo><ul id='sf3ef'></ul>
        <tfoot id='sf3ef'></tfoot>

      1. 僅在頂角帶有平鋪層的傳單地圖

        Leaflet map with tile layer only on top corner(僅在頂角帶有平鋪層的傳單地圖)

          <small id='26qOP'></small><noframes id='26qOP'>

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

                • 本文介紹了僅在頂角帶有平鋪層的傳單地圖的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在使用 Ionic 5 和 Vue.js 開發(fā)一個(gè)項(xiàng)目,在我的一個(gè)屏幕中,我使用了一張幾乎必須覆蓋整個(gè)屏幕的傳單地圖.

                  I'm developing a project with Ionic 5 and Vue.js, and in one of my screens I am using an leaflet map that must cover almost the entire screen.

                  我正在使用 vue 的傳單庫,我的代碼如下所示:

                  I am using the Leaflet library for vue, and my code looks like this:

                  <template>
                    <section class="map-container">
                      <l-map
                            ref="map"
                            :options="mapOptions"
                            :bounds="bounds"
                            v-on:update:zoom="zoomUpdated"
                            @ready="mapReady"
                          >
                        <l-tile-layer :url="'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'">
                        </l-tile-layer>
                    </l-map>
                    </section>
                  </template>
                  
                  
                  <script>
                  import "leaflet/dist/leaflet.css";
                  import Vuex from "vuex";
                  import { mapState, mapGetters } from "vuex";
                  import Leaflet from "leaflet";
                  import store from '../store/index'
                  import Vue2LeafletGoogleMutant from "vue2-leaflet-googlemutant";
                  import { LMap, LTileLayer, LPolygon, LImageOverlay } from "vue2-leaflet";
                  
                  export default {
                    name: "MapBackground",
                    store,
                    components: {
                      LMap,
                      LTileLayer
                    },
                    computed: {
                      ...mapState("maps", ["gMapsKey", "bounds", "selected"]),
                    },
                    methods: {
                      zoomUpdated(zoomLevel) {
                        if (zoomLevel <= 13) {
                          this.$store.commit("maps/selected", -1);
                        }
                      },
                      mapReady() {
                        this.$refs.map.mapObject.invalidateSize()
                        const { map } = this.$refs;
                        map.mapObject.on("click", this.selectTalhao);
                      }
                    },
                    data() {
                      return {
                        mapOptions: {
                          zoomControl: false,
                          doubleClickZoom: false,
                          tap: false,
                          trackResize: false
                        },
                        mutantOptions: { type: "satellite", redraw: true },
                      };
                    },
                    watch: {
                    },
                    async created() {
                      await this.$store.dispatch("maps/updateBounds", { point: null });
                      this.$refs.map.mapObject.invalidateSize()
                    }
                  };
                  </script>
                  

                  但是,當(dāng)我第一次加載屏幕時(shí),我們在瀏覽器中重新加載選項(xiàng)卡,我的地圖如下所示:地圖圖片

                  However, when i load the screen for the first time, our reload the tab in the browser, my map looks like this:Map image

                  我嘗試過使用 invalidateSize,檢查了 div 的高度是否發(fā)生了變化,但什么也沒有.不知道我還能做些什么來解決這個(gè)問題.任何幫助將不勝感激.

                  I've tried using invalidateSize, checked if the height of the div had changed and nothing. Don't know what else can I do to solve this. Any help would be appreciated.

                  推薦答案

                  它應(yīng)該適用于所有類型的離子應(yīng)用程序.問題是由于在離子組件之前加載傳單地圖.所以試試下面的它應(yīng)該可以工作

                  It should work for all types of ionic application. the issue is due to loading of leaflet map before the ionic components. so try the below one it should work

                  ionViewDidEnter(){
                     let osmMap = L.map('map');
                     L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
                     }).addTo(osmMap);
                     osmMap.invalidateSize();
                  }
                  

                  這篇關(guān)于僅在頂角帶有平鋪層的傳單地圖的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)加載磁貼顏色?)
                  Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側(cè)邊欄)
                  Leaflet - get latitude and longitude of a marker inside a pop-up(Leaflet - 在彈出窗口中獲取標(biāo)記的緯度和經(jīng)度)

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

                    <tbody id='q1VHT'></tbody>
                    <bdo id='q1VHT'></bdo><ul id='q1VHT'></ul>

                  • <tfoot id='q1VHT'></tfoot>

                            <legend id='q1VHT'><style id='q1VHT'><dir id='q1VHT'><q id='q1VHT'></q></dir></style></legend>
                            <i id='q1VHT'><tr id='q1VHT'><dt id='q1VHT'><q id='q1VHT'><span id='q1VHT'><b id='q1VHT'><form id='q1VHT'><ins id='q1VHT'></ins><ul id='q1VHT'></ul><sub id='q1VHT'></sub></form><legend id='q1VHT'></legend><bdo id='q1VHT'><pre id='q1VHT'><center id='q1VHT'></center></pre></bdo></b><th id='q1VHT'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='q1VHT'><tfoot id='q1VHT'></tfoot><dl id='q1VHT'><fieldset id='q1VHT'></fieldset></dl></div>
                            主站蜘蛛池模板: 日本丰满少妇裸体自慰 | 免费在线成人网 | 国产精品亚洲精品 | 国产精品第一区 | 国内精品视频 | 国产精品偷乱一区二区三区 | 日韩成人在线观看 | 欧美性猛交xx | 国产色视频一区二区三区qq号 | 欧美在线播放 | 午夜影院免费观看 | 精品一区二区三区免费 | 狠狠干在线 | 日韩特级毛片 | 制中文字幕音影 | 成人毛片一区二区三区 | 国产美女永久免费无遮挡 | 又黄又爽又色视频 | 天天干天天谢 | 中文字幕黄色 | 三级理论片 | 美日韩精品 | www.一级片 | 午夜精品视频 | 天天插天天射 | 亚洲人在线观看 | www.伊人网| 日韩免费一区 | 欧美色噜噜 | 中文有码在线 | 日韩精品一区二区在线 | 成av人片一区二区三区久久 | 日韩精品网 | 精品一区av | 国产精品久久久久久无人区 | 日韩久久精品 | 成人久久视频 | 国产成人免费视频 | 午夜影院黄 | 久久久久久久九九九九 | 户外少妇对白啪啪野战 |