If a map is initialized with some feature, the drawcontrol doesn't handle them.
To replicate the problem:
1) open the code sandbox at https://codesandbox.io/s/xenodochial-tu-pwly8.
2) add a new layer (you can replace the code in index.js in the sandbox with the following, that just adds a GeoJSONLayer, displaying a magenta line from around London to somewhere in the Indian Ocean ):
If a map is initialized with some feature, the drawcontrol doesn't handle them.
To replicate the problem:
1) open the code sandbox at https://codesandbox.io/s/xenodochial-tu-pwly8. 2) add a new layer (you can replace the code in index.js in the sandbox with the following, that just adds a GeoJSONLayer, displaying a magenta line from around London to somewhere in the Indian Ocean ):
3) run the code.
-> the drawcontrol doesn't act on the pre-existing line.
A code sandbox for this behaviour is available at: https://codesandbox.io/s/infallible-poitras-lpwr41