#10281: Use Cache Options functionality extended to be applied on all the layers from a service#10349
Conversation
… applied on all the layers from a service Description: - add the functionality for use cache options for mapviewer, dashboard, geostory, context - add unit tests - add translations
MV88
left a comment
There was a problem hiding this comment.
@mahmoudadel54 looks good to me, nice job
| addLayer(layer); | ||
| toggleLayerSelector(false); | ||
| // fetching 'tileGridData' if layer has truthy flag 'remoteTileGrids' and adding the required props to layer object | ||
| let tileGridPromise = layer.type === 'wms' && layer.remoteTileGrids ? getLayerTileMatrixSetsInfo(generateGeoServerWMTSUrl(layer), layer.name, layer) : new Promise((resolve) => resolve(null)); |
|
@ElenaGallo please test it in DEV |
|
@mahmoudadel54 if the custom tile grids are not available for a layer a note does not appear, it is visible only when I click on Update available tile grids. 1.mp4 |
|
@mahmoudadel54 the behavior above reports an inconsistency. In the display tab the correct state should be reported to the user and the layer configured accordingly. If Use remote custom tile grids in catalog is active, I guess you have to perform a WMTS request before adding the layer to the map to verify if the remote custom tile grid definition exists and can be used. Then, the state of the layer should be consistent with this as well as the UI state. |
|
Test passed, @mahmoudadel54 please backport to 2024.01.xx. Thanks |
…ctionality extended to be applied on all the layers from a service (geosolutions-it#10349)
…ed to be applied on all the layers from a service (#10349, #10361) (#10363) * fix conflicts in merging #10281: Use Cache Options functionality extended to be applied on all the layers from a service (#10349) * #10281: Use Cache Options functionality extended to be applied on all the layers from a service (#10361) * #10281: Use Cache Options functionality extended to be applied on all the layers from a service Description: - handle a missing case of showing a warning message in case of not able to fetch the grid sets - add unit tests * fix FE unit test failure #10281 * fix FE unit test failure #10281
Description
In this PR, the functionality for use cache options for mapviewer, dashboard, geostory and context are added. Now user can specify the 'use cache options' from the catalog instead of manually setting in layer settings to activate the tile grid props.
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
#10281
What is the current behavior?
#10281
What is the new behavior?
Now user can specify the 'use cache options' from the catalog instead of manually setting in layer settings.
Breaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)
Other useful information