Created
November 30, 2012 18:25
-
-
Save anonymous/4177561 to your computer and use it in GitHub Desktop.
Maps made simple with jHERE
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
/* CSS */ | |
html,body, #mapContainer { | |
font-family:sans-serif; | |
background:#fff; | |
color:#444; | |
height:100%; | |
padding:0; | |
margin:0; | |
} |
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"> | |
<title>Maps made simple with jHERE</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script> | |
<script src="http://jhere.net/js/jhere.js"></script> | |
<link rel="icon" href="http://jhere.net/favicon.ico"> | |
</head> | |
<body> | |
<div id="mapContainer"></div> | |
</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
/* Javascript | |
* | |
* See http://jhere.net/docs.html for full documentation | |
*/ | |
$(window).on('load', function() { | |
$('#mapContainer').jHERE({ | |
enable: ['behavior'], | |
center: [40.664167, -73.838611], | |
zoom: 12 | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment