Ticket #1107 (closed bug: fixed)
handlers have to check if layer exists before destroying it
|Reported by:||pgiraud||Owned by:|
Handler.Point and Handler.RegularPolygon deal with a layer and in some cases they try to call removeLayer() or destroy() even if it is already destroyed. This happens for example when the map is destroyed.
Handlers should check if layer is destroyed.
In the same way, I also remove the call to removeLayer as the destroy method already do this.
Patch (with tests !) forthcoming.