[OpenMap Users] Re: remove a layer (via MapBean)

From: OpenMap Support <openmap_at_bbn.com>
Date: Mon, 2 Aug 2004 21:22:29 -0400

Tell the LayerHandler, not the MapBean.

- Don

On Aug 2, 2004, at 7:45 PM, Ben Podoll wrote:

> I have a BasicMapPanel and I have my openmap.properties file display
> states,
> counties and river.
>
> Now that the application is up and running I want to use a custom
> button to
> turn on/off layers.
>
> The MapBean javadocs make it sound like I can turn on/off a layer via
> it's
> methods. They say to use the remove() and add() methods...
>
> But I don't see how I can get at the layers?
> basicMapPanel.getMapBean().remove(0);
>
> I was hoping there was a method like:
> basicMapPanel.getMapBean().removeLayer("us_counties");
>
> Or better yet:
> basicMapPanel.getMapBean().getLayer("us_counties").setVisible(false);
>
> Is there something like this at my finger tips since I can get at the
> MapBean?
>
> ~Ben
>
>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Aug 02 2004 - 21:22:49 EDT

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