diff options
author | Parth Buch | 2012-08-28 17:03:37 +0530 |
---|---|---|
committer | Parth Buch | 2012-08-28 17:03:37 +0530 |
commit | 7e38fd922a8dd4742d09758cd1c94fb0302045d3 (patch) | |
tree | b43d6ea8c47fb80e09e5e0bfd8759ac7d697addf /project/static/js/map.js | |
download | scipywebsite-7e38fd922a8dd4742d09758cd1c94fb0302045d3.tar.gz scipywebsite-7e38fd922a8dd4742d09758cd1c94fb0302045d3.tar.bz2 scipywebsite-7e38fd922a8dd4742d09758cd1c94fb0302045d3.zip |
Reboot for scipy 2012
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); |