diff options
Diffstat (limited to 'project/static/js/map.js')
-rw-r--r-- | project/static/js/map.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/project/static/js/map.js b/project/static/js/map.js new file mode 100644 index 0000000..4571567 --- /dev/null +++ b/project/static/js/map.js @@ -0,0 +1,6 @@ +var map = new L.Map('map'); +var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/3d56af3a9c9248eb8bca93645a548e76/997/256/{z}/{x}/{y}.png', + cloudmadeAttrib = 'Map data © 2011 OpenStreetMap contributors, Imagery © 2011 CloudMade', + cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18, attribution: cloudmadeAttrib}); +var london = new L.LatLng(51.505, -0.09); // geographical point (longitude and latitude) +map.setView(london, 13).addLayer(cloudmade); |