@@ -172,9 +172,19 @@ function initMap() {
172
172
$ ( "#info" ) . css ( "max-height" , height ) ;
173
173
console . log ( "init map at " + JSON . stringify ( bounds ) ) ;
174
174
175
- // mapquest provider
175
+ // mapquest provider
176
176
var moreAttr = 'Data © <a href="http://www.openstreetmap.org/copyright">OSM</a>,'
177
177
+ 'JS: <a href="http://leafletjs.com/">Leaflet</a>' ;
178
+
179
+ var tp = "ls" ;
180
+ if ( L . Browser . retina )
181
+ tp = "lr" ;
182
+
183
+ var lyrk = L . tileLayer ( 'http://{s}.tiles.lyrk.org/' + tp + '/{z}/{x}/{y}?apikey=6e8cfef737a140e2a58c8122aaa26077' , {
184
+ attribution : '<a href="http://geodienste.lyrk.de/">Lyrk</a>,' + moreAttr ,
185
+ subdomains : [ 'a' , 'b' , 'c' ]
186
+ } ) ;
187
+
178
188
var mapquest = L . tileLayer ( 'http://{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png' , {
179
189
attribution : '<a href="http://open.mapquest.co.uk">MapQuest</a>,' + moreAttr ,
180
190
subdomains : [ 'otile1' , 'otile2' , 'otile3' , 'otile4' ]
@@ -237,6 +247,7 @@ function initMap() {
237
247
} ) ;
238
248
239
249
var baseMaps = {
250
+ "Lyrk" : lyrk ,
240
251
"MapQuest" : mapquest ,
241
252
"MapQuest Aerial" : mapquestAerial ,
242
253
"TF Transport" : thunderTransport ,
@@ -657,10 +668,10 @@ function routeLatLng(request, doQuery) {
657
668
function addInstruction ( main , indi , title , distance , time , latLng ) {
658
669
var indiPic = "<img class='instr_pic' style='vertical-align: middle' src='" + window . location . pathname + "img/" + indi + ".png'/>" ;
659
670
var str = "<td class='instr_title'>" + title + "</td>" ;
660
-
671
+
661
672
if ( distance && distance . indexOf ( "0 " ) < 0 )
662
673
str += " <td class='instr_distance_td'><span class='instr_distance'>" + distance + "<br/>" + time + "</span></td>" ;
663
-
674
+
664
675
if ( indi !== "continue" )
665
676
str = "<td>" + indiPic + "</td>" + str ;
666
677
else
0 commit comments