Re: [OpenMap Users] Reloading other layers...

From: Don Dietrick <>
Date: Tue, 14 Dec 2004 16:50:55 -0500

HI Bart,

On Dec 14, 2004, at 12:21 PM, Bart Jourquin wrote:

> Hi all,
> My app has en menu entry that allows to open a "project". A project
> is mainly a list of layers to load.
> As many layers have to be loaded, they are added to a LayerHandler
> that is added to the MapHandler once everything is ok.
> Works sofar.
> Now, the user has the possibility to load another, new project. I can
> (could in fact, seems broken in latest cvs code) remove all

I'm not sure what changed for you. Can you explain a little what you
used to be able to do in 4.6.1 and can't do now? I'm hoping I didn't
break something unintentionally.

> layers from the handler, and then add new layers. This is ugly,
> because each add operation launches a repaint. So, I would like to
> prepare a new layerHandler and then replace the old one with the new
> one. I tried several tricks, but nothing seems to work...

You should be able to call layerHandler.setLayers(Layer[]) to replace
them entirely, with visibility set on the layers you want added to the

- Don

> Another solution would be to retain repainting during the "add
> layers" operations...
> Any idea how to do that?
> Bart
> ----
> Prof Dr Bart Jourquin
> F.U.Ca.M. - G.T.M.
> Chaussée de Binche, 151a, B7000 Mons (Belgium)
> Tel. : +32 65 323293, Fax. : +32 65 315691

Don Dietrick,
BBN Technologies, Cambridge, MA

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Dec 14 2004 - 16:51:58 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT