Skip to content

Features added to LayerGroups are not properly enabled when already in Global Edit Mode #561

Closed
@codeofsumit

Description

@codeofsumit

When adding features mid-edit to a group that is already on the map


map.pm.enableGlobalEditMode();


addFeature(feature1);
addFeature(feature2);
addFeature(feature3);


function addFeature(feature) {
  
  var group = L.geoJson({
    "type": "FeatureCollection",
    "features": []
  }).addTo(map);
  
  L.geoJson(feature).addTo(group);
}

Fiddle:
https://jsfiddle.net/bLnx5e2g/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixedIssues that are fixed in develop or in a PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions