[Pkg-javascript-commits] [leaflet] 15/78: Update outdated cloudmade tiles with OSM.

Jonas Smedegaard dr at jones.dk
Sat May 7 08:58:43 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 f3dca3b544776099d32020dd8d6578e2d19081ec
Author: Iván Sánchez Ortega <ivan at mazemap.no>
Date:   Wed May 20 13:20:35 2015 +0200

    Update outdated cloudmade tiles with OSM.
---
 debug/map/map-mobile.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/debug/map/map-mobile.html b/debug/map/map-mobile.html
index e9829c1..bb22833 100644
--- a/debug/map/map-mobile.html
+++ b/debug/map/map-mobile.html
@@ -18,12 +18,12 @@
 
 	<script type="text/javascript">
 
-		var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/d4fc77ea4a63471cab2423e66626cbb6/997/256/{z}/{x}/{y}.png',
-			cloudmadeAttribution = 'Map data © 2011 OpenStreetMap contributors, Imagery © 2011 CloudMade',
-			cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18, attribution: cloudmadeAttribution}),
+		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}),
 			latlng = new L.LatLng(50.5, 30.51);
 
-		var map = new L.Map('map', {center: latlng, zoom: 15, layers: [cloudmade]});
+		var map = new L.Map('map', {center: latlng, zoom: 15, layers: [osm]});
 
 		var marker = new L.Marker(latlng);
 		map.addLayer(marker);

-- 
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