Difference between revisions of "Web Element: Map"


Line 12: Line 12:
 
container: 'map',
 
container: 'map',
 
style: 'mapbox://styles/mapbox/streets-v11'
 
style: 'mapbox://styles/mapbox/streets-v11'
 +
center: [-74.5, 40], // starting position
 +
zoom: 9 // starting zoom
 
});
 
});
 +
 +
// Add zoom and rotation controls to the map.
 +
map.addControl(new mapboxgl.NavigationControl());
 
</script>
 
</script>
 
</body>
 
</body>
  
 
</html>
 
</html>

Revision as of 20:34, 17 May 2020