From b8871a8533331a2bbe6acbb76c20fab9a119087d Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Wed, 1 Nov 2023 15:57:03 +0100 Subject: [PATCH] try out tracestack map --- src/map.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/map.ts b/src/map.ts index 91013ee..5d2b661 100644 --- a/src/map.ts +++ b/src/map.ts @@ -33,8 +33,17 @@ const basemap_url = retina ? basemap_hq_url : basemap_lq_url const map = new Map({ target: 'map', layers: [ + // new TileLayer({ + // source: new OSM({url: "https://maps.lw1.at/tiles/1.0.0/osm/GLOBAL_MERCATOR/{z}/{x}/{y}.png"}), + // }), new TileLayer({ - source: new OSM({url: "https://maps.lw1.at/tiles/1.0.0/osm/GLOBAL_MERCATOR/{z}/{x}/{y}.png"}), + source: new XYZ({ + url: "https://maps.lw1.at/tiles/1.0.0/tracestack/webmercator_hq/{z}/{x}/{y}.png", + tilePixelRatio: 5, + attributions: ['Data: © OpenStreetMap contributors, SRTM, NASADEM, ESA WorldCover; Maps © Tracestrack'], + opaque: true, + crossOrigin: null + }), }), new TileLayer({ source: new XYZ({ @@ -103,7 +112,7 @@ const transFlagStyle = new Style({ const nonbinaryFlagStyle = new Style({ image: new Icon({ src: nonbinaryFlag, - scale: 0.05*800/300 + scale: 0.05 * 800 / 300 }) })