On Thu, Oct 08, 2009 at 03:01:47PM +0200, Heiko Schröter wrote:
> 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.

Okay. In that case, I'd probably just do map.innerHTML =""; and call it a day,
personally. Maybe otheres can offer more advice.

Regards,
-- 
Christopher Schmidt
MetaCarta
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to