Skip to content

Terrain layer should download only when needed #2824

@offtherailz

Description

@offtherailz

Description

The current solution for elevation is add an hidden layer that downloads image/bil tiles with the special flag useForElevation.

This causes the download of tiles even when not necessary. We should set the layer initially not visible and enable it only when the elevation tool is active. This should help openlayers and leaflet to avoid to download unnecessary tiles, and should be not a problem for cesium that uses the layer in a different way.
See #2816

The best solution is to trigger 1 tile download only on demand, when mouse stops, for instance. An intermediate solution is to make the layer visible (and so download tiles) only when mouseposition is enabled.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions