Skip to content

Instantly share code, notes, and snippets.

@ryanjhodge
Last active August 29, 2015 14:27
Show Gist options
  • Save ryanjhodge/1066c1852becc21c1457 to your computer and use it in GitHub Desktop.
Save ryanjhodge/1066c1852becc21c1457 to your computer and use it in GitHub Desktop.
NPMap.js Joshua Tree National Park Vegetation Inventory Map
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>CartoDB Layer | Examples | NPMap.js</title>
<style>
body {
margin: 0;
padding: 0;
}
#map {
bottom: 0;
position: absolute;
top: 0;
width: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
var NPMap = {
div: 'map',
fullscreenControl: true,
infoboxControl: true,
zoomdisplayControl: true,
minZoom: 11,
zoom: 11,
center: {
"lat": 33.8941,
"lng": -115.8556
},
overlays: [{
id: 'ryanjhodge.23f33aa8',
type: 'mapbox',
popup: false,
tooltip: '<b>Class:</b> {{class}}<br /><b>Macrogroup:</b> {{macrogroup}}<br /><b>Association:</b> {{mapunit_name}}'
}]
};
(function() {
var s = document.createElement('script');
s.src = 'http://www.nps.gov/lib/npmap.js/2.0.0/npmap-bootstrap.js';
document.body.appendChild(s);
})();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment