Created
May 1, 2018 10:09
-
-
Save asathoor/886c016bee4a8458028bc3c8cf820474 to your computer and use it in GitHub Desktop.
Mapbox in Pagebuilder Sample
This file contains 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
<!-- the javascript will load the map here --> | |
<div id='map' style='width: 400px; height: 300px;'></div> | |
<!-- mapbox style and script --> | |
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.2/mapbox-gl.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.2/mapbox-gl.css' rel='stylesheet' /> | |
<!-- mapbox map --> | |
<script> | |
mapboxgl.accessToken = 'YOUR-TOKEN-HERE'; | |
var map = new mapboxgl.Map({ | |
container: 'map', | |
style: 'mapbox://YOUR-STYLE-URL-HERE' | |
}); | |
</script> | |
</code> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment