npmap.js
Version:
A JavaScript web mapping library, built as a Leaflet plugin, for the National Park Service.
49 lines (47 loc) • 1.29 kB
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>Handlebars | 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 = {
baseLayers: false,
div: 'map',
minZoom: 5,
overlays: [{
attribution: 'Wilderness Stewardship Division',
id: 'nps.map-yyhgnmsc,nps.wilderness-areas,nps.wilderness-parks-update',
name: 'Wilderness Map',
opacity: 1,
popup: {
description: '<ul><li>Designated Acres: {{acres_des}}</li><li>Designated Potential Acres: {{#if acres_pot}}{{acres_pot}}{{else}}N/A{{/if}}</li></ul>',
title: '{{name}}'
},
type: 'mapbox'
}],
zoom: 5
};
(function() {
var s = document.createElement('script');
s.src = '../dist/npmap-bootstrap.js';
document.body.appendChild(s);
})();
</script>
</body>
</html>