Created
August 23, 2016 18:21
-
-
Save anandthakker/38817d33a7162304392f025dbd43d2d9 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<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.22.1/mapbox-gl.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.22.1/mapbox-gl.css' rel='stylesheet' /> | |
<style> | |
body { margin:0; padding:0; } | |
body > div { float: left; margin: 5px; border: 2px solid #005500; } | |
#smaller { width: 256px; height: 256px; } | |
#fiveohoh { width: 500px; height: 500px; } | |
#fivetwelve { width: 512px; height: 512px; } | |
</style> | |
</head> | |
<body> | |
<div id='smaller'></div> | |
<div id='fiveohoh'></div> | |
<div id='fivetwelve'></div> | |
<script> | |
mapboxgl.accessToken = 'pk.eyJ1IjoiZGV2c2VlZCIsImEiOiJnUi1mbkVvIn0.018aLhX0Mb0tdtaT2QNe2Q'; | |
var map = new mapboxgl.Map({ | |
container: 'smaller', // container id | |
style: 'mapbox://styles/mapbox/streets-v9', //stylesheet location | |
center: [0, 0], // starting position | |
zoom: 0 // starting zoom | |
}); | |
var map = new mapboxgl.Map({ | |
container: 'fiveohoh', // container id | |
style: 'mapbox://styles/mapbox/streets-v9', //stylesheet location | |
center: [0, 0], // starting position | |
zoom: 0 // starting zoom | |
}); | |
var map = new mapboxgl.Map({ | |
container: 'fivetwelve', // container id | |
style: 'mapbox://styles/mapbox/streets-v9', //stylesheet location | |
center: [0, 0], // starting position | |
zoom: 0 // starting zoom | |
}); | |
</script> | |
</body> | |
</html> |
f12
What is it?
f12
lalala --- bug.html:12
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lalala