You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering two errors when using the ngx-leaflet-markercluster package in my Angular application.
Error 1: Uncaught ReferenceError: L is not defined This error occurs in the global scripts file.
Error 2: TypeError: L2.markerClusterGroup is not a function This error is triggered during the ngOnInit lifecycle hook of LeafletMarkerClusterDirective.
Steps to Reproduce:
Set up the ngx-leaflet-markercluster package in an Angular project.
Use the LeafletMarkerClusterDirective in a component.
Run the application and observe the errors in the console.
Expected Behavior: The application should render the marker clusters without any errors.
Actual Behavior: The application throws the mentioned errors and the marker clusters do not function as expected.
I am encountering two errors when using the ngx-leaflet-markercluster package in my Angular application.
Error 1: Uncaught ReferenceError: L is not defined This error occurs in the global scripts file.
Error 2: TypeError: L2.markerClusterGroup is not a function This error is triggered during the ngOnInit lifecycle hook of LeafletMarkerClusterDirective.
Steps to Reproduce:
Expected Behavior: The application should render the marker clusters without any errors.
Actual Behavior: The application throws the mentioned errors and the marker clusters do not function as expected.
Environment:
Angular Version: 19.0.6
ngx-leaflet-markercluster Version: 19.0.0
Leaflet Version: 1.9.4
If more information is needed, please let me know. Thank you for your help!
The text was updated successfully, but these errors were encountered: