phegman / vue-mapbox-gl

A Vue.js component for Mapbox GL JS
GNU General Public License v3.0
270 stars 33 forks source link

Multiple map instances #41

Closed attx closed 6 years ago

attx commented 6 years ago

I tried to create multiple map instances, but vue-mapbox-gl don't display anything when changing the id attribute of the component. The events (onMapLoaded, ..) get called on the first map too, is it possible somehow to have multiple maps at the same time?

phegman commented 6 years ago

Yep this component supports multiple map instances. See this issue for more info: https://github.com/phegman/vue-mapbox-gl/issues/10

Please share your code if you still can't get it working.

Best, Pete