diff --git a/admin/c2cgeoportal_admin/static/theme.css b/admin/c2cgeoportal_admin/static/theme.css index e3a6cbbd0a..0cc8184b3a 100644 --- a/admin/c2cgeoportal_admin/static/theme.css +++ b/admin/c2cgeoportal_admin/static/theme.css @@ -45,6 +45,9 @@ .icon-l_wmts:before { content: '\e011'; } +.icon-l_cog:before { + content: '\e011'; +} .icon-mvt:before { content: '\e011'; } diff --git a/admin/c2cgeoportal_admin/views/layertree.py b/admin/c2cgeoportal_admin/views/layertree.py index cb6ddf64c9..0efddbae17 100644 --- a/admin/c2cgeoportal_admin/views/layertree.py +++ b/admin/c2cgeoportal_admin/views/layertree.py @@ -42,6 +42,7 @@ "group": "layer_groups", "l_wms": "layers_wms", "l_wmts": "layers_wmts", + "l_cog": "layers_cog", } diff --git a/geoportal/c2cgeoportal_geoportal/views/theme.py b/geoportal/c2cgeoportal_geoportal/views/theme.py index e76872fe14..96d53535c9 100644 --- a/geoportal/c2cgeoportal_geoportal/views/theme.py +++ b/geoportal/c2cgeoportal_geoportal/views/theme.py @@ -415,7 +415,8 @@ async def _layer( assert time_ is not None assert dim is not None - errors |= dim.merge(layer, layer_info, mixed) + if not isinstance(layer, main.LayerCOG): + errors |= dim.merge(layer, layer_info, mixed) if isinstance(layer, main.LayerWMS): wms, wms_errors = await self._wms_layers(layer.ogc_server)