Created
April 5, 2020 14:20
-
-
Save markgis/d282acbe479f36a2486cfd09dae38cca to your computer and use it in GitHub Desktop.
Basic Mapbox Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src='https://api.mapbox.com/mapbox-gl-js/v1.9.0/mapbox-gl.js'></script> | |
<link href='https://api.mapbox.com/mapbox-gl-js/v1.9.0/mapbox-gl.css' rel='stylesheet' /> | |
<div id='map' style='width: 400px; height: 300px;'></div> | |
<script> | |
mapboxgl.accessToken = | |
'Your toek here'; | |
var map = new mapboxgl.Map({ | |
container: 'map', | |
style: 'mapbox://styles/mapbox/streets-v9' | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment