Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

lfDraw edit attributes gets overwritten when initial featureGroup is undefined #19

Open
eugenehuangsg opened this issue Jun 7, 2017 · 0 comments

Comments

@eugenehuangsg
Copy link
Contributor

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()
}
nmccready added a commit that referenced this issue Jun 7, 2017
#19 - Default featureGroup should be assigned gracefully without overwriting existing attributes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant