Closed (fixed)
Project:
Leaflet
Version:
2.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2020 at 10:10 UTC
Updated:
2 Dec 2020 at 21:19 UTC
Jump to comment: Most recent
When a saved map is edited the GeoJSON data string is extended with new data, instead of replaced.
Clear the correct list of layers.
Create a patch
Review the patch
Apply the patch
None
None
None
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
tessa bakkerThe MR will always force a recalculation of the string for the GeoJSON-field.
Credits to SpadXIII for finding the problem of this issue.
Comment #4
tessa bakkerComment #8
itamair commentedThanks so much @Tessa. I couldn't reproduce your issue. I think that last version of Leaflet was already working properly on this.
But your code updates looks better than the existing one. Hence I am merging and committing into dev.
Will be part of the next Leaflet 2.1.x release ...
Comment #10
itamair commented