<style>
#map {
height: 350px;
position: relative;
width: 100%;
}
</style>
<div id="map"></div>
<script>
var NPMap = {
center: {
lat: 45.3058,
lng: -116.7187
},
div: 'map',
overlays: [{
filter: function (feature) {
return feature.properties.park === 'Yellowstone';
},
maki: {
name: 'star'
},
popup: {
description: 'This is {{#ifCond type \'!==\' \'community\'}}not {{/ifCond}}a community.',
title: '{{name}}'
},
type: 'geojson',
url: 'https://www.nps.gov/lib/npmap.js/4.0.0/examples/data/gateway-points-of-interest.geojson'
}, {
cluster: {
clusterIcon: '#000',
maxClusterRadius: 70
},
maki: {
color: '#609321',
name: 'park'
},
popup: {
description: 'The alpha code is {{Code}}',
title: '{{Name}}'
},
type: 'geojson',
url: 'https://www.nps.gov/lib/npmap.js/4.0.0/examples/data/national-parks.geojson'
}],
zoom: 6
};
(function () {
var s = document.createElement('script');
s.src = 'https://www.nps.gov/lib/npmap.js/4.0.0/npmap-bootstrap.js';
document.body.appendChild(s);
})();
</script>