OpenLayers OpenLayers

Ticket #500 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

layer.destroy() should remove itself from the map but not set new baselayer

Reported by: euzuro Assigned to:
Priority: major Milestone: 2.3 Release
Component: Map Version: 2.3 RC2
Keywords: Cc:
State:

Description

This raises errors in IE and anyways causes unecessary loading of other layers.

layer.destroy() calls map.removeLayer(this)

but we need it to call a special removeLayer, because the current removeLayer will set a new baselayer if the layer being removed is a baselayer.

patch forthcoming.

Attachments

removeLayer.patch (2.4 kB) - added by euzuro on 02/16/07 15:54:42.

Change History

02/16/07 15:54:42 changed by euzuro

  • attachment removeLayer.patch added.

02/16/07 15:56:45 changed by euzuro

  • keywords set to review.

02/16/07 15:58:09 changed by crschmidt

Go ahead to commit.

02/16/07 15:59:41 changed by euzuro

  • keywords changed from review to pullup.

in trunk with r2233

02/19/07 11:27:25 changed by euzuro

  • keywords deleted.
  • status changed from new to closed.
  • resolution set to fixed.