Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mapbox add a leaflet marker with popup

<div id='map-leaflet' class='map'> </div>
<script>
var mapLeaflet = L.mapbox.map('map-leaflet')
  .setView([37.8, -96], 4)
  .addLayer(L.mapbox.styleLayer('mapbox://styles/mapbox/light-v10'));

L.marker([38.913184, -77.031952]).addTo(mapLeaflet);
L.marker([37.775408, -122.413682]).addTo(mapLeaflet);

mapLeaflet.scrollWheelZoom.disable();
</script>
Source by docs.mapbox.com #
 
PREVIOUS NEXT
Tagged: #mapbox #add #leaflet #marker #popup
ADD COMMENT
Topic
Name
3+7 =