Created
June 25, 2014 07:12
-
-
Save thejeshgn/2e94c15050256eb46a06 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> | |
<head> | |
<title>Bangalore Maps</title> | |
<style> | |
#map { | |
width: 99%; | |
height: 500px; | |
} | |
</style> | |
<script src="./leaflet.js"></script> | |
<link rel="stylesheet" href="./leaflet.css" /> | |
</head> | |
<body> | |
<div id="map"></div> | |
<script type="text/javascript"> | |
var map = L.map('map').setView([ 12.976549,77.594397], 13); | |
var mapquestUrl = 'http://{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png', | |
subDomains = ['otile1','otile2','otile3','otile4']; | |
var mapquest = new L.TileLayer(mapquestUrl, {maxZoom: 18, subdomains: subDomains}); | |
mapquest.addTo(map); | |
//Makrer - point | |
var marker = L.marker([51.5, -0.09]).addTo(map); | |
//line - styles | |
//polygon | |
//WRD | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment