Created
July 1, 2017 22:42
-
-
Save amyleew/51fc095d851e51d91e094d6e3aea3871 to your computer and use it in GitHub Desktop.
// source http://jsbin.com/rakoli
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
<html> | |
<head> | |
<meta charset='utf-8' /> | |
<title></title> | |
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> | |
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.38.0/mapbox-gl.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.38.0/mapbox-gl.css' rel='stylesheet' /> | |
<style> | |
body { margin:0; padding:0; } | |
#map { position:absolute; top:0; bottom:0; width:100%; } | |
</style> | |
</head> | |
<body> | |
<div id='map'></div> | |
<script id="jsbin-javascript"> | |
mapboxgl.accessToken = 'pk.eyJ1IjoibXNsZWUiLCJhIjoiclpiTWV5SSJ9.P_h8r37vD8jpIH1A6i1VRg'; | |
var map = new mapboxgl.Map({ | |
container: 'map', // container id | |
style: 'mapbox://styles/mslee/cj0obwm1700872smpb8y9qqdh', //stylesheet location | |
center: [-77.031,38.899], // starting position | |
zoom: 15.3 // starting zoom | |
}); | |
map.on('load', function () { | |
map.setPaintProperty('restaurants_blk', 'text-color', '#bd0026'); | |
}); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">mapboxgl.accessToken = 'pk.eyJ1IjoibXNsZWUiLCJhIjoiclpiTWV5SSJ9.P_h8r37vD8jpIH1A6i1VRg'; | |
var map = new mapboxgl.Map({ | |
container: 'map', // container id | |
style: 'mapbox://styles/mslee/cj0obwm1700872smpb8y9qqdh', //stylesheet location | |
center: [-77.031,38.899], // starting position | |
zoom: 15.3 // starting zoom | |
}); | |
map.on('load', function () { | |
map.setPaintProperty('restaurants_blk', 'text-color', '#bd0026'); | |
});</script></body> | |
</html> |
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
mapboxgl.accessToken = 'pk.eyJ1IjoibXNsZWUiLCJhIjoiclpiTWV5SSJ9.P_h8r37vD8jpIH1A6i1VRg'; | |
var map = new mapboxgl.Map({ | |
container: 'map', // container id | |
style: 'mapbox://styles/mslee/cj0obwm1700872smpb8y9qqdh', //stylesheet location | |
center: [-77.031,38.899], // starting position | |
zoom: 15.3 // starting zoom | |
}); | |
map.on('load', function () { | |
map.setPaintProperty('restaurants_blk', 'text-color', '#bd0026'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment