Created
December 7, 2015 08:49
-
-
Save jczaplew/5fe137627013b9b3df32 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta name="viewport" content="width=device-width" charset="UTF-8"> | |
<title>Simplest mapping app</title> | |
<link rel="stylesheet" href="http://maps.metastudio.org/lib/leaflet/Leaflet-1.0.0-b2/leaflet.css" /> | |
<style> | |
body { | |
padding:0; | |
margin:0; | |
} | |
#map { | |
position:absolute; | |
width:100%; | |
height:100%; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="map"></div> | |
<script src="http://maps.metastudio.org/lib/leaflet/Leaflet-1.0.0-b2/leaflet.js"></script> | |
<script> | |
/* | |
* Lesson 1 | |
*/ | |
// Initialize the map and set the view | |
var map = L.map('map').setView([19, 72.8], 11); | |
// add tile layer | |
L.tileLayer('http://a.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map); | |
</script> | |
</body> | |
<html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment