This line adds a new layer directly to the underlying feature group. This does not align to leaflet draw's default behavior and made me wonder, why I always ended up with two equal layers in my feature group.
Now, I guess some apps depend on this and we may not be able to simply remove this, but what about adding an optional property, to be able to disable the default behavior? I will implement a draft for this and link it here.
Addressed this by changing the behavior in v6 to match Leaflet Draw's default behavior. You have to add layers to the feature group yourself and add the feature group to the map. See the README for details.
https://github.com/Asymmetrik/ngx-leaflet-draw/blob/master/src/leaflet-draw/core/leaflet-draw.directive.ts#L66
This line adds a new layer directly to the underlying feature group. This does not align to leaflet draw's default behavior and made me wonder, why I always ended up with two equal layers in my feature group. Now, I guess some apps depend on this and we may not be able to simply remove this, but what about adding an optional property, to be able to disable the default behavior? I will implement a draft for this and link it here.