bluehalo / ngx-leaflet

Core Leaflet package for Angular.io
MIT License
774 stars 126 forks source link

[leafletOptions] binding does not do the job expected of an Angular component ! #365

Open l3miage-ourzikj opened 6 months ago

l3miage-ourzikj commented 6 months ago

[leafletOptions] binding does not take into account data source updates For example, if we consider a signal-type options source that provides locations with their GPS coordinates (LatlngLiteral[]), and we subsequently update the signal by adding other GPS coordinates, the latter will be added, but when we decide to create markers on the map corresponding to these coordinates, only the default coordinates of the original signal are considered.

However, when you change the [leafletOptions] class to [leafletLayers], it takes updates into account. That said, [leafletOptions] is a misleading name, as it is supposed to take modifications into account.

stack version: @asymmetrik/ngx-leaflet": "^17.0.0", "leaflet": "^1.9.4", "@angular/cli": "^17.3.1", Screenshot from 2024-03-28 14-55-17