-
-
Save rukku/5e2b59a1bce46b5c445a 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 charset="utf-8"> | |
<title>MaptimeDiliman Slippy Map</title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> | |
<style> | |
#mapContainer { height: 380px; width: 50%; } | |
</style> | |
</head> | |
<body> | |
<div id="mapContainer"> | |
</div> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> | |
<script type="text/javascript"> | |
//initialize the map | |
var map = L.map('mapContainer').setView([14.65, 121.07], 11); | |
//Add a basemap | |
L.tileLayer('http://{s}.tiles.mapbox.com/v3/spatialdev.map-c9z2cyef/{z}/{x}/{y}.png').addTo(map); | |
var marker = L.marker([14.63, 121.05]).bindPopup("<b>Hello MaptimeDiliman!</b><br>I am a popup.").openPopup().addTo(map); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment