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

fix: handle multiple layers in TerraDrawOpenLayersAdapter #358

Merged
merged 1 commit into from
Oct 26, 2024

Conversation

JamesLMilner
Copy link
Owner

Description of Changes

Fix TerraDrawOpenLayersAdapter not being able to handle multiple layers, preventing users from having more than one layer. This fix attempts to go a bit deeper, handling the scenario where layers are added or removed also. This is necessary because Terra Draw intercepts events on the 'top' canvas DOM element that is present in the browser. If we remove a layer or add layer we want to ensure the top layer is correct.

Link to Issue

#357

PR Checklist

  • The PR title follows the conventional commit standard
  • There is a associated GitHub issue
  • If I have added significant code changes, there are relevant tests
  • If there are behaviour changes these are documented

@JamesLMilner JamesLMilner force-pushed the fix-openlayers-canvases branch from 935fdd2 to 80d2aa8 Compare October 26, 2024 13:39
@JamesLMilner JamesLMilner merged commit 6903e4e into main Oct 26, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant