Last active
August 29, 2015 14:05
-
-
Save MappingKat/6a454e14565b3245fba4 to your computer and use it in GitHub Desktop.
Multiple Maps
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'); | |
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
<!DOCTYPE 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>Multiple Maps | Examples | NPMap.js</title> | |
<link rel='stylesheet' href="style.css"> | |
</head> | |
<body> | |
<div id="map-1"></div> | |
<div id="map-2"></div> | |
<script src="app.js"></script> | |
</body> | |
</html> |
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
#map-1, #map-2 { | |
height: 300px; | |
width: 300px; | |
position: relative; | |
float:left; | |
padding: 20px 10px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment