A map of bathymetry near the bay area.
Last active
May 21, 2017 21:43
-
-
Save tbuckl/e4d561aa1bf3bb386d79b8f7ccd6fab5 to your computer and use it in GitHub Desktop.
Bay Area Bathymetry
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Ocean</title> | |
<!-- Load Leaflet from CDN--> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/leaflet/1.0.0-rc.3/leaflet.css" /> | |
<script src="https://cdn.jsdelivr.net/leaflet/1.0.0-rc.3/leaflet-src.js"></script> | |
<!-- Load Esri Leaflet from CDN --> | |
<script src="https://cdn.jsdelivr.net/leaflet.esri/2.0.2/esri-leaflet.js"></script> | |
<script> | |
function init(){ | |
var map = L.map("map").setView([37.8199286,-122.4782551], 15); | |
L.esri.basemapLayer("Oceans").addTo(map); | |
L.esri.basemapLayer('OceansLabels').addTo(map); | |
L.control.scale().addTo(map); | |
} | |
</script> | |
<style> | |
body { | |
padding: 0; | |
margin: 0; | |
} | |
html, body, #map { | |
height: 100%; | |
width: 100%; | |
} | |
} | |
</style> | |
</head> | |
<body onload='init()'> | |
<div id='map'></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment