ui-leaflet-draw icon indicating copy to clipboard operation
ui-leaflet-draw copied to clipboard

lfDraw edit attributes gets overwritten when initial featureGroup is undefined

Open eugenehuangsg opened this issue 7 years ago • 0 comments

lfDraw currently supports adding of featureGroup but there is an issue.

Given a configuration

edit: {
    edit: true,
    remove: false
}

Expected: (adding featureGroup)

edit: {
    edit: true,
    remove: false
    featureGroup: new L.FeatureGroup()
}

Current: (replacing the attributes entirely)

edit: {
    featureGroup: new L.FeatureGroup()
}

eugenehuangsg avatar Jun 07 '17 12:06 eugenehuangsg