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": "Mapnik",
"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=ca8e8a8e3f9a44c19a8edcf8fb5f90c4",
"tilesUrl": "http://{s}.tile.thunderforest.com/landscape/{z}/{x}/{y}.png?apikey=dffb0dc7ee234e4b903fd6735aac05d2",
"options": {
"options": {
"wvIsExternal": true,
"wvIsExternal": true,
"wvName": "Relief map",
"wvName": "Alternative",
"attribs": [
"attribs": [
{
{
Zeile 81: Zeile 81:
}
}
]
]
}
},
"traffic-line-network": {
"tilesUrl": "http://www.openptmap.org/tiles/{z}/{x}/{y}.png",
"options": {
"wvIsOverlay": true,
"wvIsExternal": true,
"wvName": "Traffic line network",
"attribs": [
{
"url": "http://openptmap.org/",
"name": "Openptmap.org",
"label": "Traffic lines"
}
],
"opacity": 0.5,
"maxNativeZoom": 17
}
}
},
},
Zeile 114: Zeile 97:
"wvIsOverlay": true,
"wvIsOverlay": true,
"wvIsExternal": true,
"wvIsExternal": true,
"wvName": "Cycling",
"wvName": "Radfahren",
"attribs": [
"attribs": [
{
{
Zeile 129: Zeile 112:
"wvIsOverlay": true,
"wvIsOverlay": true,
"wvIsExternal": true,
"wvIsExternal": true,
"wvName": "Hiking",
"wvName": "Wandern",
"attribs": [
"attribs": [
{
{
Zeile 139: Zeile 122:
}
}
},
},
"hill-shading": {
"tilesUrl": "http://{s}.tiles.wmflabs.org/hillshading/{z}/{x}/{y}.png",
"options": {
"wvIsOverlay": true,
"wvIsExternal": true,
"wvName": "Hill shading",
"attribs": [
{
"url": "http://www2.jpl.nasa.gov/srtm/",
"name": "NASA",
"label": "Hill shading"
}
]
}
}
};
};
/* jscs:enable validateQuoteMarks, disallowQuotedKeysInObjects */
/* jscs:enable validateQuoteMarks, disallowQuotedKeysInObjects */
Zeile 181: Zeile 149:
.basemap( 'mapnik' )
.basemap( 'mapnik' )
.basemap( 'landscape' )
.basemap( 'landscape' )
.overlay( 'traffic-line-network' )
.overlay( 'boundaries' )
.overlay( 'hill-shading' )
.overlay( 'cycling' )
.overlay( 'cycling' )
.overlay( 'hiking' )
.overlay( 'hiking' )
.datalayer( map.dataLayers )
.datalayer( map.dataLayers )
.update();
.update();
wvmap.nearby();


} );
} );