Skip to content

Commit

Permalink
geosolutions-it#10487: Custom Tile Grids settings for WMS service are…
Browse files Browse the repository at this point in the history
… not retained when adding a Background layer from Catalog

Description:
- fix lint issues in WMSCacheOptions file
  • Loading branch information
mahmoudadel54 committed Jul 24, 2024
1 parent 99158eb commit d4a47a0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ function WMSCacheOptions({

const handleGetTileGridSettings = () => {
const newTileGridStrategy = layer.tileGridStrategy !== 'custom'
? 'custom'
: undefined;
? 'custom'
: undefined;
const promise = newTileGridStrategy === 'custom'
&& ((layer?.tileGrids?.length || 0) === 0 || !layer?.tileGridCacheSupport)
? onTileMatrixSetsFetch(layer)
Expand All @@ -289,7 +289,7 @@ function WMSCacheOptions({
if (owner === 'background-dialog' && newTileGridStrategy === 'custom') {
tileChangedData = {
...tileChangedData, tiled: true, tileGridStrategy: 'custom'
}
};
}
handleOnChange(tileChangedData);
});
Expand All @@ -302,7 +302,7 @@ function WMSCacheOptions({
if (layer.remoteTileGrids && owner === 'background-dialog') {
handleGetTileGridSettings();
}
}, [])
}, []);
return (
<div className="ms-wms-cache-options">
<div className="ms-wms-cache-options-content">
Expand Down

0 comments on commit d4a47a0

Please sign in to comment.