onresize vue leaflet

Solutions on MaxInterview for onresize vue leaflet by the best coders in the world

showing results for - " onresize vue leaflet"
Julieta
24 Sep 2017
1<template>
2  <b-container>
3    <b-button v-b-toggle="collapse" variant="primary">Show map</b-button>
4    <b-collapse @shown="reloadMap()" id="collapse">
5      <div id="map">
6        <LMap ref="map" ...>
7          ...
8        </LMap>
9      </div>
10    </b-collapse>
11  </b-container>
12</template>
13
14<script>
15...
16export default {
17  ...
18  methods: {
19    reloadMap: function () {
20      this.$refs.map.mapObject.invalidateSize()
21    }
22  }
23}
24</script>
25
queries leading to this page
onresize vue leaflet onresize vue leaflet