Skip to content

Commit

Permalink
Merge pull request #11240 from camptocamp/fix-cog
Browse files Browse the repository at this point in the history
Fix COG
  • Loading branch information
sbrunner authored Jul 12, 2024
2 parents 194812b + 7145e9c commit f2cbd3d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions admin/c2cgeoportal_admin/static/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
.icon-l_wmts:before {
content: '\e011';
}
.icon-l_cog:before {
content: '\e011';
}
.icon-mvt:before {
content: '\e011';
}
Expand Down
1 change: 1 addition & 0 deletions admin/c2cgeoportal_admin/views/layertree.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"group": "layer_groups",
"l_wms": "layers_wms",
"l_wmts": "layers_wmts",
"l_cog": "layers_cog",
}


Expand Down
3 changes: 2 additions & 1 deletion geoportal/c2cgeoportal_geoportal/views/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f2cbd3d

Please sign in to comment.