This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var NPMap = { | |
div: 'map' | |
}; | |
(function() { | |
var s = document.createElement('script'); | |
s.src = 'http://www.nps.gov/npmap/npmap.js/2.0.0/npmap-bootstrap.min.js'; | |
document.body.appendChild(s); | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var NPMap = [{ | |
div: 'map-1', | |
scrollWheelZoom: false | |
},{ | |
div: 'map-2', | |
scrollWheelZoom: false | |
}]; | |
(function() { | |
var s = document.createElement('script'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var NPMap = { | |
baseLayers: [{ | |
attribution: 'Harpers Ferry Center', | |
height: 6738, | |
type: 'zoomify', | |
url: 'http://www.nps.gov/parkmaps/yell/img/', | |
width: 5069 | |
}], | |
div: 'map' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var NPMap = { | |
div: 'map', | |
hooks: { | |
init: function(callback) { | |
NPMap.config.L.notify | |
.success('Good Job!') | |
.info('Some helpful information.') | |
.warning('Something may go wrong.') | |
.danger('Danger!'); | |
callback(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var NPMap = { | |
center: { | |
lat: 42.42, | |
lng: -104.71 | |
}, | |
div: 'map', | |
overlays: [{ | |
name: 'National Parks', | |
popup: { | |
title: '<a href="http://www.nps.gov/{{toLowerCase Code}}">{{Name}}</a>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var NPMap = { | |
center: { | |
lat: 45.3058, | |
lng: -116.7187 | |
}, | |
div: 'map', | |
overlays: [{ | |
attribution: 'NPMap Team', | |
name: 'Parks', | |
popup: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var NPMap = { | |
center: { | |
lat: 45.3058, | |
lng: -116.7187 | |
}, | |
div: 'map', | |
overlays: [{ | |
attribution: 'NPMap Team', | |
popup: { | |
title: '{{Description}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var el = document.getElementById('events'), | |
NPMap; | |
function addMessage(message) { | |
el.innerHTML += message + '<br>'; | |
el.scrollTop = el.scrollHeight; | |
} | |
NPMap = { | |
div: 'map', | |
events: [{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var NPMap = { | |
div: 'map', | |
hooks: { | |
preinit: function(callback) { | |
alert('preinit'); | |
callback(); | |
}, | |
init: function(callback) { | |
alert('init'); | |
callback(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var NPMap = { | |
div: 'map', | |
editControl: true | |
}; | |
(function() { | |
var s = document.createElement('script'); | |
s.src = 'http://www.nps.gov/npmap/npmap.js/2.0.0/npmap-bootstrap.min.js'; | |
document.body.appendChild(s); | |
})(); |
OlderNewer