dymaptic / GeoBlazor

Core Components for the Dymaptic GeoBlazor Library
MIT License
109 stars 19 forks source link

fix: layer JsModule is null after AddLayer #322

Closed CyberDNS closed 7 months ago

CyberDNS commented 7 months ago

Hi dear GeoBlazor Team,

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

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

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

Resolves #321

Br, David from Team GIS - POST Luxembourg