-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(lambda-tiler): Update the wmts resource url to include the daterange. #2669
Conversation
const resourceURLs = lines.filter((f) => f.includes('<ResourceURL')).map((f) => f.trim()); | ||
o(resourceURLs).deepEquals([ | ||
'<ResourceURL format="image/png" resourceType="tile" template="https://tiles.test/v1/tiles/aerial/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png?api=d01f7w7rnhdzg0p7fyrc9v9ard1&config=Q5pC4UjWdtFLU1CYtLcRSmB49RekgDgMa5EGJnB2M&date%5Bbefore%5D=2021" />', | ||
'<ResourceURL format="image/png" resourceType="tile" template="https://tiles.test/v1/tiles/ōtorohanga-urban-2021-0.1m/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png?api=d01f7w7rnhdzg0p7fyrc9v9ard1&config=Q5pC4UjWdtFLU1CYtLcRSmB49RekgDgMa5EGJnB2M&date%5Bbefore%5D=2021" />', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't use a date range on a individual imagery set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, I just think this ResourceURL is missing the daterange parameter so I made this change. I think WMTS already contain the filteredLayers
, then we don't need this changes. The PR could be closed.
@@ -38,6 +38,8 @@ export interface WmtsCapabilitiesParams { | |||
config?: string | null; | |||
/** Specific layers to add to the WMTS */ | |||
layers?: ConfigLayer[] | null; | |||
/** Specific DateRange for the wmts layers */ | |||
dateRange?: Record<string, string | undefined>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could this just be filters
? so it could be expanded later?
].join('/'); | ||
} | ||
|
||
buildResourceUrl(tileSetId: string, suffix: string): VNodeElement { | ||
buildResourceUrl(tileSetId: string, suffix: string, AddFilter = false): VNodeElement { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whis is this not camelCase ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, just fixed.
No description provided.