Skip to content

Commit

Permalink
refactor: generate tiles array in test
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckMt committed Sep 5, 2023
1 parent d77f8b0 commit b4d07d7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions projects/map-maplibre/src/lib/map-maplibre.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [{
Expand Down

0 comments on commit b4d07d7

Please sign in to comment.