D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
hpfast
Full window
Github gist
simple mapbox-gl viewer
<!DOCTYPE html> <html lang="nl"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>VISdata - PDOK</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" href="img/pdok_favicon.ico"> <link rel="stylesheet" href="css/mapbox-gl.css"> <link rel="stylesheet" href="css/main.css"> </head> <body> <div id="map"></div> <script> // MAP OPTIONS var options = { container: "map", hash: true, style: 'https://geodata.nationaalgeoregister.nl/beta/topotiles-viewer/styles/achtergrond.json', zoom: 8, pitch: 0, bearing: 0, center: [5.19,52.33], attributionControl: false } // INITIALIZE MAP var map = new mapboxgl.Map(options); map.addControl(new mapboxgl.AttributionControl(), "bottom-left"); </script> </body> </html>