Skip to content

Instantly share code, notes, and snippets.

@ycombinator
Created July 12, 2016 14:20
Show Gist options
  • Save ycombinator/ab6e7624bb70ac9baf9b46892082f602 to your computer and use it in GitHub Desktop.
Save ycombinator/ab6e7624bb70ac9baf9b46892082f602 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="https://res.mapjam.com/lib/0.9/mapjam.js"></script>
<link href="https://res.mapjam.com/lib/0.9/mapjam.css" rel="stylesheet" />
<script src="https://res.mapjam.com/lib/0.9/mapjam-resources-L0.js"></script>
<link href="https://res.mapjam.com/lib/0.9/mapjam-resources-L0.css" rel="stylesheet" />
<script>
window.onload = function() {
var ACCESS_TOKEN = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1Nzg0ZmI2ODcxNWUxMjM0MDBiNzEyYjIiLCJpc3MiOiJtYXBqYW0uY29tIn0.4ngOdDmJymLZOJnZhLWp3ayvtOg9yp3h3i5W8Ld3JEE';
var map = new MJ.map('map', {
centerMap: [51.5079313, -0.1280328],
zoom: 12,
accessToken: ACCESS_TOKEN
});
}
</script>
</head>
<body>
<div id='map' style='width: 400px; height: 300px;'></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment