Difference between revisions of "Web Element: Map"
Line 6: | Line 6: | ||
<body> | <body> | ||
+ | <div id='map' style='width: 400px; height: 300px;'></div> | ||
+ | <script> | ||
+ | mapboxgl.accessToken = 'pk.eyJ1Ijoia2lsdGVyIiwiYSI6IkEyNkVMb3cifQ.S4BPGK9G2NnoopYXnqAK7g'; | ||
+ | var map = new mapboxgl.Map({ | ||
+ | container: 'map', | ||
+ | style: 'mapbox://styles/mapbox/streets-v11' | ||
+ | }); | ||
+ | </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