Skip to content

Instantly share code, notes, and snippets.

@thejeshgn
Created June 25, 2014 07:12
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 thejeshgn/2e94c15050256eb46a06 to your computer and use it in GitHub Desktop.
Save thejeshgn/2e94c15050256eb46a06 to your computer and use it in GitHub Desktop.
<!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