Closed doublemc closed 1 year ago
Thanks. We'll prepare an example in the storybook.
any udpate?
+1
This is how I've done it:
Captured the event
<v-mapbox @mb-created="mapCreated" />
saved the map variable
mapCreated: function(map){
console.log("map event", map);
this.map = map;
}
and then added the marker
import mapboxgl from 'mapbox-gl';
this.point = new mapboxgl.Marker().setLngLat(this.currentPosition).addTo(this.map);
This was added in #36
Hey, like your lib - first one that actually works out of the box without any problems. I have a problem though - is there a way to add markers via this lib? THx!