Skip to content

Instantly share code, notes, and snippets.

@chrisdugne
Created November 18, 2014 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdugne/e253ab9139de6105c122 to your computer and use it in GitHub Desktop.
Save chrisdugne/e253ab9139de6105c122 to your computer and use it in GitHub Desktop.
Maperial : Your first map
<html>
<head>
<meta charset="utf-8">
<title>Maperial demo</title>
<script src="http://static.maperial.com/js/maperial.js" type="text/javascript"></script>
</head>
<body>
<div id="map"></div>
</body>
</html>
/*
Maperial is a free javascript API to create maps for your web applications.
https://github.com/maperial/maperial-api.js
*/
var maperial = new Maperial();
var map = maperial.createMap('map');
map.addMapquest();
#map{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left:0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment