Skip to content

Instantly share code, notes, and snippets.

@jhnklly
Last active August 29, 2015 14:23
Show Gist options
  • Save jhnklly/3270644093d8fbebfcd6 to your computer and use it in GitHub Desktop.
Save jhnklly/3270644093d8fbebfcd6 to your computer and use it in GitHub Desktop.
basemap, vintage, hash
<!doctype html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="http://d3js.org/topojson.v1.min.js" charset="utf-8"></script>
<script src="https://developer.mapsense.co/mapsense.js" charset="utf-8"></script>
<link type="text/css" href="https://developer.mapsense.co/mapsense.css" rel="stylesheet"/>
<style>
/* Sets the map to be full screen with no margin */
body, html, #myMap{
height: 100%;
width: 100%;
margin: 0;
overflow: hidden;
}
</style>
</head>
<body>
<div id="myMap"></div>
<script>
var map = mapsense
.map("#myMap") // Select an element to add the map to
.add(mapsense.basemap().apiKey("key-2d5eacd8b924489c8ed5e8418bd883bc").style("vintage")) //add a basemap layer and append your API key
map.add(mapsense.hash());
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment