D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
wboykinm
Full window
Github gist
MapboxGL Test
<!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>Mapbox GL JS Examples</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.2.0/mapbox-gl.js'></script> <style> body { margin:0; padding:0; } #map { position:absolute; top:0; bottom:0; width:100%; } </style> </head> <body> <div id='map'></div> <script> var map; mapboxgl.accessToken = 'pk.eyJ1IjoiZmFyYWRheTIiLCJhIjoiTUVHbDl5OCJ9.buFaqIdaIM3iXr1BOYKpsQ'; map = new mapboxgl.Map({ container: 'map', // container id style: 'outdoors-v4.json', //stylesheet location center: [29.94441, -90.06681], // starting position zoom: 14 // starting zoom }); </script> </body> </html>
https://api.tiles.mapbox.com/mapbox-gl-js/v0.2.0/mapbox-gl.js