Skip to content

COG layers are loading data even if not visible #12360#12488

Open
rowheat02 wants to merge 1 commit into
geosolutions-it:masterfrom
rowheat02:cogLoadIssue
Open

COG layers are loading data even if not visible #12360#12488
rowheat02 wants to merge 1 commit into
geosolutions-it:masterfrom
rowheat02:cogLoadIssue

Conversation

@rowheat02

Copy link
Copy Markdown
Contributor

Description

This PR prevents hidden COG layers from loading TIFF data in the background.
COG layers use ol/source/GeoTIFF, which initializes TIFF metadata when the source is constructed. Because MapStore was creating the GeoTIFF source even when visibility:false, hidden COG layers could still trigger HTTP range requests.

The fix delays COG OpenLayers layer/source creation until the layer becomes visible.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix

Issue

What is the current behavior?

#12360

What is the new behavior?

COG layer will not request for data when it is in hidden state.

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

COG layers are loading data even if not visible

2 participants