[OpenLayers-Users] Wipe out Map for different projection

Heiko Schröter schroete at iup.physik.uni-bremen.de
Thu Oct 8 09:01:47 EDT 2009


Am Donnerstag 08 Oktober 2009 14:30:27 schrieben Sie:

> map.destroy();
> 
> perhaps?
> 
> -- Chris
> 

Tried it already and it (seems) not to do the Job cleanly.
It looks that the dependencies/references (click etc) are not destroyed/removed.
Saying this, tried to remove all the 'register,control' handler as well and still the 'Layer Switcher, PanZoom etc.' are left over.

The new map instance is than pushed below the olMap.

Regards
Heiko



More information about the Users mailing list