npmap.js
Version:
A JavaScript web mapping library, built as a Leaflet plugin, for the National Park Service.
40 lines (38 loc) • 884 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>Download Control | Examples | NPMap.js</title>
<style>
#map {
height: 400px;
width: 600px;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
var NPMap = {
div: 'map',
downloadControl: {
files: [{
type: 'csv',
url: 'data/colorado_cities.csv'
}]
},
overlays: [{
cluster: true,
type: 'csv',
url: 'data/colorado_cities.csv'
}]
};
(function() {
var s = document.createElement('script');
s.src = '../dist/npmap-bootstrap.js';
document.body.appendChild(s);
})();
</script>
</body>
</html>