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> |
hkilter.com by H. K. Ilter is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
© 2020 H. K. Ilter