Skip to content

Instantly share code, notes, and snippets.

@anilex
Forked from anonymous/jhere.css
Created November 30, 2012 18:49
Show Gist options
  • Save anilex/4177689 to your computer and use it in GitHub Desktop.
Save anilex/4177689 to your computer and use it in GitHub Desktop.
Maps made simple with jHERE
/* CSS */
html,body, #mapContainer {
font-family:sans-serif;
background:#fff;
color:#444;
height:100%;
padding:0;
margin:0;
}
<!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>
/* 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