Ticket #2141 (new bug)

Opened 4 years ago

removing a layer from the map which is still loading causes errors

Reported by: bartvde Owned by: euzuro
Priority: minor Milestone: 2.13 Release
Component: Layer Version: 2.8 RC4
Keywords: Cc:
State:

Description

If you have a very slow WMS layer, and the user removes it from the map before it finishes loading there will be javascript errors. E.g. in getResolution in Layer.js where this.map is accessed.

Note: See TracTickets for help on using tickets.