@@ -2,6 +2,7 @@ import { Layer, Map, tileLayer, type TileLayer } from "leaflet";
22import AutoGraticule from "leaflet-auto-graticule" ;
33import { getI18n } from "./utils/i18n" ;
44import { markdownInline } from "facilmap-utils" ;
5+ import FreieTonne from "leaflet-freie-tonne" ;
56
67export const defaultVisibleLayers : VisibleLayers = {
78 baseLayer : "Mpnk" ,
@@ -99,11 +100,11 @@ export function createDefaultLayers(): Layers & { fallbackLayer: string | undefi
99100 noWrap : true
100101 } ) ) ,
101102
102- // MpnW: fixAttribution(tileLayer("http ://ftdl. de/tile-cache/tiles/ {z}/ {x}/ {y}.png", {
103- // ...fmName(() => getI18n().t("layers.mpnw-name")),
104- // ...attribution(() => getI18n().t("layers.mpnw-attribution")),
105- // noWrap: true
106- // })),
103+ MpnW : fixAttribution ( tileLayer ( "https ://www.freietonne. de/seekarte-2.0/tah.openstreetmap.org/Tiles/TileCache.php?z= {z}&x= {x}&y= {y}.png" , {
104+ ...fmName ( ( ) => getI18n ( ) . t ( "layers.mpnw-name" ) ) ,
105+ ...attribution ( ( ) => getI18n ( ) . t ( "layers.mpnw-attribution" ) ) ,
106+ noWrap : true
107+ } ) ) ,
107108 } ,
108109 overlays : {
109110 OPTM : fixAttribution ( tileLayer ( "https://pt.facilmap.org/tile/{z}/{x}/{y}.png" , {
@@ -173,12 +174,12 @@ export function createDefaultLayers(): Layers & { fallbackLayer: string | undefi
173174 noWrap : true
174175 } ) ,
175176
176- // FrTo: fixAttribution(new FreieTonne({
177- // ...fmName(() => getI18n().t("layers.frto-name")),
178- // ...attribution(() => getI18n().t("layers.frto-attribution")),
179- // zIndex: 300,
180- // noWrap: true
181- // }))
177+ FrTo : fixAttribution ( new FreieTonne ( {
178+ ...fmName ( ( ) => getI18n ( ) . t ( "layers.frto-name" ) ) ,
179+ ...attribution ( ( ) => getI18n ( ) . t ( "layers.frto-attribution" ) ) ,
180+ zIndex : 300 ,
181+ noWrap : true
182+ } ) )
182183 } ,
183184 fallbackLayer : 'Mpnk'
184185 } ;
0 commit comments