Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] old raster map style will be changed after just opening style editor #4300

Open
JinIgarashi opened this issue Oct 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@JinIgarashi
Copy link
Contributor

Bug Description

some old raster map style is changed after opening style editor.

Bug Reproduction

Bug Impact

No response

Bug Screenshots

No response

Bug References

No response

Bug System Information

  • OS: [e.g. Windows 10]
  • Browser: [e.g. Google Chrome, Firefox]
@JinIgarashi JinIgarashi added the bug Something isn't working label Oct 21, 2024
@JinIgarashi
Copy link
Contributor Author

I found raster color legend was changed after subscribing rescale store. Looks like some changes on RasterRescale component will trigger the event in RasterClassifyLegend to change map style.

if (!layerHasUniqueValues) {
rescaleStore.subscribe(() => {
handleRescaleChanged();
});
}

@JinIgarashi
Copy link
Contributor Author

JinIgarashi commented Oct 21, 2024

this map #192's raster dataset has statistics ranged 0.40465450286865234 to 1.2871990203857422

However, this saved map style is set to 0.36 to 1.4. Because of this difference, it looks like always being updated when correct rescale values is set in editor.

since the latest map with raster looks working well, maybe we can just close this issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant