久久久久久久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>

                • 本文介紹了僅在頂角帶有平鋪層的傳單地圖的處理方法,對(duì)大家解決問題具有一定的參考價(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í),我們?cè)跒g覽器中重新加載選項(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)于僅在頂角帶有平鋪層的傳單地圖的文章就介紹到這了,希望我們推薦的答案對(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)加載磁貼顏色?)
                  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>
                            主站蜘蛛池模板: 亚洲欧美视频一区 | 国产福利资源 | 中文字幕一区二区三区精彩视频 | 视频一区二区在线观看 | 欧美在线不卡 | 日本二区 | 精品日韩电影 | av日韩在线播放 | 精品欧美一区二区在线观看视频 | 亚洲国产精品一区二区第一页 | 五月天婷婷综合 | 国产精彩视频在线观看 | 国产99久久精品 | 精品国产一区探花在线观看 | 午夜影院在线观看免费 | 福利视频网 | 国产精品1区2区3区 国产在线观看一区 | 毛片久久久 | 日本超碰| 99pao成人国产永久免费视频 | 欧美精品一区二区三区在线 | 欧美精品三区 | 色综久久 | 欧美精品网站 | 亚洲一区在线日韩在线深爱 | 黄色片网站在线观看 | 丁香五月网久久综合 | 中文字幕日韩一区二区 | 欧美另类日韩 | 国产日韩欧美一区二区在线播放 | 亚洲精品久久久久久一区二区 | 久久久亚洲一区 | 美日韩免费视频 | 国产成人在线视频 | 国产伊人久久久 | 精品国产一级 | 欧美福利| 中文字幕日韩一区 | 亚洲精品一区二区三区蜜桃久 | 二区亚洲 | 91精品国产麻豆 |