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: can clear graphics on layer #338

Conversation

CyberDNS
Copy link

Hi dear GeoBlazor Team,

Description:
We noticed an issue while clearing Graphics from a GraphicsLayer.
This issue can be reproduced only if a GraphicsLayer has been added by code to the MapView.
This issue does not occur if a GraphicsLayer has been added using markup of the component (Razor language).

Changes:
To fix this issue, View has been set while executing the AddLayer method.
New test method TestCanClearGraphics has been added to validate the fix.

Impact:
This change fix the failure while clearing Graphics from a GraphicsLayer.

Resolves #336

Br,
David from Team GIS - POST Luxembourg

Copy link
Collaborator

@TimPurdum TimPurdum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@TimPurdum TimPurdum merged commit e11a10e into dymaptic:develop May 16, 2024
1 check passed
@TimPurdum TimPurdum mentioned this pull request Aug 1, 2024
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.

Clearing Graphics from a GraphicsLayer fails
2 participants