Maperial is a free javascript API to create maps for your web applications.
Created
November 18, 2014 21:36
-
-
Save chrisdugne/e253ab9139de6105c122 to your computer and use it in GitHub Desktop.
Maperial : Your first map
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
<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> |
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
/* | |
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(); |
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
#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