From 7e38fd922a8dd4742d09758cd1c94fb0302045d3 Mon Sep 17 00:00:00 2001 From: Parth Buch Date: Tue, 28 Aug 2012 17:03:37 +0530 Subject: Reboot for scipy 2012 --- project/static/js/map.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 project/static/js/map.js (limited to 'project/static/js/map.js') 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); -- cgit