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: jsModule is null for basemap layer #337

Conversation

CyberDNS
Copy link

Hi dear GeoBlazor Team,

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

Changes:
To fix this issue, JsModule has been set while executing the AddLayer method, whether isBasemapLayer is true or false.
New test method TestCanSetBaseMapLayerVisibility has been added to validate the fix.

Impact:
This change fix the failure while setting layer visibility from a BaseMapLayer.

Resolves #335

Br,
David from Team GIS - POST Luxembourg

@TimPurdum
Copy link
Collaborator

@CyberDNS thanks again for this, will update and merge!

@TimPurdum
Copy link
Collaborator

@CyberDNS whoops, forgot, this is coming from your repo, so you'll have to update to merge. Let me know if you need any help.

@TimPurdum
Copy link
Collaborator

@CyberDNS since I'm unable to update your repo to resolve conflicts, and I'm sure you are all as busy as we are, I'm going to close this PR and re-open with the same changes.

@TimPurdum TimPurdum closed this Jul 20, 2024
TimPurdum added a commit that referenced this pull request Jul 20, 2024
TimPurdum added a commit that referenced this pull request Jul 20, 2024
…from_a_basemap_layer

recreate from external PR #337
@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.

Setting visibility from a BaseMapLayer fails
2 participants