project/static/js/map.js
author primal primal007@gmail.com
Sun, 04 Dec 2011 00:16:07 +0530
branch2011
changeset 503 2fd1aa38924e
parent 469 40025d462588
permissions -rw-r--r--
day zero post
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);