MediaWiki:Kartographer.js: Unterschied zwischen den Versionen
Die Seite wurde neu angelegt: „→Jedes JavaScript an dieser Stelle wird für alle Benutzer auf Seiten geladen, die Karten enthalten: /********************************************************************** * The JavaScript in this file is a CUSTOMIZATION of the Kartographer * extension for Wikivoyage. * * For any information about Kartographer, visit the page: * https://www.mediawiki.org/wiki/Extension:Kartographer * * WHAT IS IT DOING ? * * This code listens to a Kartog…“ |
Keine Bearbeitungszusammenfassung |
||
| (10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 48: | Zeile 48: | ||
"options": { | "options": { | ||
"wvIsExternal": true, | "wvIsExternal": true, | ||
"wvName": " | "wvName": "Standard", | ||
"subdomains": [ | "subdomains": [ | ||
"a", | "a", | ||
| Zeile 65: | Zeile 65: | ||
"landscape": { | "landscape": { | ||
/* [[User:DTankersley (WMF)]] is the contact person for this API key */ | /* [[User:DTankersley (WMF)]] is the contact person for this API key */ | ||
"tilesUrl": "http://{s}.tile.thunderforest.com/landscape/{z}/{x}/{y}.png?apikey= | "tilesUrl": "http://{s}.tile.thunderforest.com/landscape/{z}/{x}/{y}.png?apikey=dffb0dc7ee234e4b903fd6735aac05d2", | ||
"options": { | "options": { | ||
"wvIsExternal": true, | "wvIsExternal": true, | ||
"wvName": " | "wvName": "Alternative", | ||
"attribs": [ | "attribs": [ | ||
{ | { | ||
| Zeile 81: | Zeile 81: | ||
} | } | ||
] | ] | ||
} | } | ||
}, | }, | ||
| Zeile 114: | Zeile 97: | ||
"wvIsOverlay": true, | "wvIsOverlay": true, | ||
"wvIsExternal": true, | "wvIsExternal": true, | ||
"wvName": " | "wvName": "Radfahren", | ||
"attribs": [ | "attribs": [ | ||
{ | { | ||
| Zeile 129: | Zeile 112: | ||
"wvIsOverlay": true, | "wvIsOverlay": true, | ||
"wvIsExternal": true, | "wvIsExternal": true, | ||
"wvName": " | "wvName": "Wandern", | ||
"attribs": [ | "attribs": [ | ||
{ | { | ||
| Zeile 139: | Zeile 122: | ||
} | } | ||
}, | }, | ||
}; | }; | ||
/* jscs:enable validateQuoteMarks, disallowQuotedKeysInObjects */ | /* jscs:enable validateQuoteMarks, disallowQuotedKeysInObjects */ | ||
| Zeile 181: | Zeile 149: | ||
.basemap( 'mapnik' ) | .basemap( 'mapnik' ) | ||
.basemap( 'landscape' ) | .basemap( 'landscape' ) | ||
.overlay( 'cycling' ) | .overlay( 'cycling' ) | ||
.overlay( 'hiking' ) | .overlay( 'hiking' ) | ||
.datalayer( map.dataLayers ) | .datalayer( map.dataLayers ) | ||
.update(); | .update(); | ||
} ); | } ); | ||