Answers for "add marker on map geocoder result mapbox"

0

add marker on map geocoder result mapbox

geocoder.on('result', function(e) {
  var marker = new mapboxgl.Marker({ draggable: true, color: "pink" })
    .setLngLat(e.result.center)
    .addTo(map)
});
Posted by: Guest on June-28-2021

Code answers related to "add marker on map geocoder result mapbox"

Browse Popular Code Answers by Language