In the example for EditControl, it is shown that an existing geometry can be added to the feature group at the moment of the component definition; the example uses a dl.Marker component.
This component is then fully editable by the EditControls. However, this does not seem to work well for any other geometry. Changing the example to use a polygon instead:
gives an interesting phenomenon: if the browser tab was open upon refreshing the Dash app, the polygon is loaded and is editable and interactive. However, upon refreshing the tab, the polygon fails to respond to the edit bar and the browser gives errors like these:
Hi,
In the example for EditControl, it is shown that an existing geometry can be added to the feature group at the moment of the component definition; the example uses a dl.Marker component.
This component is then fully editable by the EditControls. However, this does not seem to work well for any other geometry. Changing the example to use a polygon instead:
gives an interesting phenomenon: if the browser tab was open upon refreshing the Dash app, the polygon is loaded and is editable and interactive. However, upon refreshing the tab, the polygon fails to respond to the edit bar and the browser gives errors like these:
Any idea what's going on here?