templates/trip.html

changeset 136
27324a81beca
parent 118
24f5faf6237f
--- a/templates/trip.html	Thu Dec 20 23:11:07 2018 +0200
+++ b/templates/trip.html	Sat Jan 12 01:38:58 2019 +0200
@@ -168,6 +168,28 @@
 			maxZoom: 18,
 		}
 	),
+	"HSL": L.tileLayer(
+		'https://cdn.digitransit.fi/map/v1/{id}/{z}/{x}/{y}@2x.png',
+		{
+			attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
+          '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
+			maxZoom: 19,
+			tileSize: 512,
+			zoomOffset: -1,
+			id: 'hsl-map'
+		}
+	),
+	"HSL (svenska)": L.tileLayer(
+		'https://cdn.digitransit.fi/map/v1/{id}/{z}/{x}/{y}@2x.png',
+		{
+			attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
+			'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
+			maxZoom: 19,
+			tileSize: 512,
+			zoomOffset: -1,
+			id: 'hsl-map-sv'
+		}
+	),
 }
 
 var route = [{{shape}}];

mercurial