Closed FabianSilva closed 6 years ago
new mapboxgl.Marker(el) .setLngLat(marker.geometry.coordinates) .addTo(map);
some examples tell about L.marker but L is not available. how I can add points on vue-mapbox-gl?
https://www.mapbox.com/help/custom-markers-gl-js/
L.marker is for Leaflet so it won't be available in this package. You can add a new marker to the map by using the map-load event.
map-load
new mapboxgl.Marker(el) .setLngLat(marker.geometry.coordinates) .addTo(map);
some examples tell about L.marker but L is not available. how I can add points on vue-mapbox-gl?
https://www.mapbox.com/help/custom-markers-gl-js/