From b4d07d7152a7e1ea5f2e28897a78a49bc42d580c Mon Sep 17 00:00:00 2001 From: Mathias Boeck Date: Tue, 5 Sep 2023 16:35:06 +0200 Subject: [PATCH] refactor: generate tiles array in test --- projects/map-maplibre/src/lib/map-maplibre.service.spec.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/projects/map-maplibre/src/lib/map-maplibre.service.spec.ts b/projects/map-maplibre/src/lib/map-maplibre.service.spec.ts index 7d0a6662f..66c25000e 100644 --- a/projects/map-maplibre/src/lib/map-maplibre.service.spec.ts +++ b/projects/map-maplibre/src/lib/map-maplibre.service.spec.ts @@ -55,12 +55,7 @@ const createLayers = () => { //@ts-ignore "__Comment": "The url to the tilejson is not public available so we use the tiles array to skip the request, to make use of the tms service. See https://github.com/openlayers/ol-mapbox-style/blob/v8.2.1/src/util.js#L109", "url": "", - "tiles": [ - "https://a.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true", - "https://b.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true", - "https://c.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true", - "https://d.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true" - ] + "tiles": "abcd".split('').map(s => `s=>https://${s}.tiles.geoservice.dlr.de/service/tms/1.0.0/planet_eoc@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf?flipy=true`) } }, layers: [{