phegman / vue-mapbox-gl

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

how to create simple points/Markers? #17

Closed FabianSilva closed 6 years ago

FabianSilva commented 7 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/

phegman commented 6 years ago

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.