npmap.js
Version:
A JavaScript web mapping library, built as a Leaflet plugin, for the National Park Service.
34 lines (33 loc) • 768 B
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>Overview Control (API) | Examples | NPMap.js</title>
<link rel="stylesheet" href="../dist/npmap.css"/>
<script src="../dist/npmap.js"></script>
<style>
body {
margin: 0;
padding: 0;
}
#map {
bottom: 0;
position: absolute;
top: 0;
width: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
var map = L.npmap.map({
div: 'map'
});
var overview = L.npmap.control.overview({
layer: 'mapbox-light'
}).addTo(map);
</script>
</body>
</html>