project/static/js/map.js
author Parth buch <parth.buch.115@gmail.com>
Fri, 02 Dec 2011 16:10:48 +0530
branch2011
changeset 469 40025d462588
permissions -rw-r--r--
Added map and map markers to the venue page
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
469
40025d462588 Added map and map markers to the venue page
Parth buch <parth.buch.115@gmail.com>
parents:
diff changeset
     1
var map = new L.Map('map');
40025d462588 Added map and map markers to the venue page
Parth buch <parth.buch.115@gmail.com>
parents:
diff changeset
     2
var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/3d56af3a9c9248eb8bca93645a548e76/997/256/{z}/{x}/{y}.png',
40025d462588 Added map and map markers to the venue page
Parth buch <parth.buch.115@gmail.com>
parents:
diff changeset
     3
    cloudmadeAttrib = 'Map data &copy; 2011 OpenStreetMap contributors, Imagery &copy; 2011 CloudMade',
40025d462588 Added map and map markers to the venue page
Parth buch <parth.buch.115@gmail.com>
parents:
diff changeset
     4
    cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18, attribution: cloudmadeAttrib});
40025d462588 Added map and map markers to the venue page
Parth buch <parth.buch.115@gmail.com>
parents:
diff changeset
     5
var london = new L.LatLng(51.505, -0.09); // geographical point (longitude and latitude)
40025d462588 Added map and map markers to the venue page
Parth buch <parth.buch.115@gmail.com>
parents:
diff changeset
     6
map.setView(london, 13).addLayer(cloudmade);