Hi Leonidas,
I don't understand what you are trying to do by calling repaint on a
layer that is part of the layer array of the MapRequestHandler.
If you want the MapRequestHandler to include certain layers when it
creates an image, there are methods that let you set a bit mask for
which layers should be included. Alternatively, you can use a Vector
of layer marker names from the openmap.properties file to specify which
layers should be part of the image.
Currently, the MapRequestHandler doesn't use the visibility of the
layers to determine whether the Layer should be part of the image, but
that sounds like something good to add for the next version of OpenMap.
- Don
On Wednesday, August 14, 2002, at 03:51 AM, Williams, Leonidas
(IndSys, GEPC) wrote:
> Hi to everyone:
>
> I am trying to make the layers no visible when I want. I am making this
> code:
>
> MapRequestHandler map;
>
> .....
>
> Layer lyrMine[] = map.getLayers();
> lyrMine[4].setVisible(false);
> lyrMine[4].repaint();
>
> But this code is no taking effect. Am I forgetting something?? What
> else
> should I do??
>
> Thanks in advance for your help.
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Mon Aug 19 18:06:49 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT