[OpenLayers-Users] Wipe out Map for different projection
Christopher Schmidt
crschmidt at metacarta.com
Thu Oct 8 09:15:19 EDT 2009
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
More information about the Users
mailing list