Last active
August 29, 2015 14:10
-
-
Save rukku/f974de2f4701197e3a78 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
<html> | |
<head> | |
<title>A Leaflet map!</title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"/> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> | |
<style> | |
#map{ width: 900px; height: 500px; } | |
</style> | |
</head> | |
<body> | |
<div id="map"></div> | |
<script> | |
// initialize the map | |
var map = L.map('map').setView([14.654343736166062, 121.0664176940918], 16); | |
// load a tile layer | |
L.tileLayer('http://{s}.tiles.mapbox.com/v3/openplans.map-g4j0dszr/{z}/{x}/{y}.png', | |
{ | |
attribution: 'Map tiles © Development Seed and Data from <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,', | |
maxZoom: 17, | |
minZoom: 9 | |
}).addTo(map); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment