Skip to content

Commit

Permalink
fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
baloola committed Nov 12, 2024
1 parent e661195 commit c61ab2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion eoxserver/render/mapserver/map_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ def _get_layers_plus_factories(
) -> List[Tuple[Layer, BaseMapServerLayerFactory]]:
layers_plus_factories = []
type_to_layer_factory = {}
for layer in render_map.layers:

for layer in render_map:
layer_type = type(layer)
if layer_type in type_to_layer_factory:
factory = type_to_layer_factory[layer_type]
Expand Down
2 changes: 1 addition & 1 deletion eoxserver/services/ows/wms/layermapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def lookup_layer(self, layer_name, suffix, style, filters_expressions,
footprints=[
product.footprint for product in self.iter_products(
eo_object, filters_expressions, sort_by,
limit=limit_products
limit=reader.limit_products
)

],
Expand Down

0 comments on commit c61ab2d

Please sign in to comment.