[Pkg-javascript-commits] [leaflet] 06/78: switch to OSM on the debug page

Jonas Smedegaard dr at jones.dk
Sat May 7 08:58:42 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit 8849980cd70fb70be6acac8f08ea9c7a1a5f11ee
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Wed Jan 28 02:38:12 2015 +0200

    switch to OSM on the debug page
---
 debug/map/map.html | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/debug/map/map.html b/debug/map/map.html
index 6941ffd..d6f5c10 100644
--- a/debug/map/map.html
+++ b/debug/map/map.html
@@ -19,15 +19,13 @@
 
 	<script type="text/javascript">
 
-		var cloudmade = L.tileLayer('http://{s}.tile.cloudmade.com/{key}/997/256/{z}/{x}/{y}.png', {
-			maxZoom: 18,
-			attribution: 'Map data © 2011 <a href="#">OpenStreetMap</a> contributors, Imagery © 2011 <a href="#">CloudMade</a>',
-			key: 'd4fc77ea4a63471cab2423e66626cbb6'
-		});
+		var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
+			osmAttrib = '© <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',
+			osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: osmAttrib});
 
 		var map = L.map('map')
 				.setView([50.5, 30.51], 15)
-				.addLayer(cloudmade);
+				.addLayer(osm);
 
 		var markers = new L.FeatureGroup();
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list