vue-leaflet / Vue2Leaflet

Vue 2 components for Leaflet maps
https://vue2-leaflet.netlify.app
MIT License
1.95k stars 380 forks source link

init map when vue rerender other component #152

Closed dfy167 closed 6 years ago

dfy167 commented 6 years ago

when click to update class of text. then the map set to initstate. even the tag has no ref with map `

    </v-map>`

<a class="navbar-item" @click.stop="button1"> <span :class="{'has-text-info':isActive1}">aaaa</span> </a> methods: { button1: function () { console.log('button1') this.isActive1 = !this.isActive1 }}

Browsers Affected

  • [ ] Chrome

Versions

  • Leaflet: 1
  • Vue: 2
  • Vue2Leaflet: latest
dfy167 commented 6 years ago

fix it by delete :center="[28.1938459445,112.9574064230]"

KoRiGaN commented 6 years ago

Hi @dfy167,

Could you please rephrase your question or make a running example that reproduces this issue?

I'm not sure to understand what you mean.

Micka