Open UniquesKernel opened 2 months ago
Thanks for reporting the issue, i can reproduce on main and 1.3 versions
when map type changes, it first removes and adds the new geohash layer here, but then seems there's some race condition in calling this function
it is called again during its async execution, resulting in appending a new layer rather than replacing it when option updates. I converted the await import
to sync imports and it worked ok.
will need more research on the correct implementation with lazy loading
Describe the bug When creating a map widget in OpenSearch Dashboard, the legend on the map can stack infinitely high by changing an updating the map type repeatedly.
To Reproduce Steps to reproduce the behavior:
Expected behavior Expect legend to be updated, and not starting to stack on top of itself.
OpenSearch Version OpenSearch 2.14
Dashboards Version OpenSearch Dashboard 2.14
Plugins No plugins are enabled. Simply run an instance using
npm start
andnpm run opensearch snapshot
on the 2.14 release branch.Screenshots
Before step 7 and 8:
After step 7 and 8:
Host/Environment (please complete the following information):