Skip to content

Instantly share code, notes, and snippets.

@brianhartsock
Created September 4, 2020 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianhartsock/ae9880f8312d208922eb1d8010d6aac5 to your computer and use it in GitHub Desktop.
Save brianhartsock/ae9880f8312d208922eb1d8010d6aac5 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src='https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.css' rel='stylesheet' />
</head>
<body>
<div id='map' style='width: 400px; height: 300px;'></div>
<script>
mapboxgl.accessToken = 'pk.eyJ1IjoiYnJpYW5oYXJ0c29jayIsImEiOiJja2VvZjBpMzMwaDZ3MnJsZ3ppdDVnYWtpIn0.-NnD5wRdCNvDoxqo7Fnrtg';
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/streets-v11'
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment