Skip to content

Instantly share code, notes, and snippets.

@jczaplew
Created December 7, 2015 08:49
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 jczaplew/5fe137627013b9b3df32 to your computer and use it in GitHub Desktop.
Save jczaplew/5fe137627013b9b3df32 to your computer and use it in GitHub Desktop.
<!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