D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
burritojustice
Full window
Github gist
lake mead usgs geology map pan
Built with
blockbuilder.org
<!DOCTYPE html> <html lang="en"> <head> <title>Lake Mead Geology Pan</title> <meta charset="utf-8"> <link rel="stylesheet" href="https://mapzen.com/js/mapzen.css"> <script src="https://mapzen.com/js/mapzen.min.js"></script> <style> #map { height: 100%; width: 100%; position: absolute; } html,body{margin: 0; padding: 0} </style> </head> <body> <div id="map"></div> <script> var center = [36.0,-115.3]; var map = L.Mapzen.map('map', { center: center, zoom: 12, scene: 'https://mapzen.com/api/scenes/22/111/resources/default.yaml', }); // Add attribution for NPS geology data map.attributionControl.addAttribution('Geology data © <a href="https://www.nps.gov">NPS</a>'); map.panTo([36.44,-114.15], {animate: true,duration: 500}) </script> </body> </html>
https://mapzen.com/js/mapzen.min.js