[OpenMap Users] DTED

From: Tobias Gorgs <tobias.gorgs_at_t-online.de>
Date: Sat, 2 Apr 2005 10:18:37 +0200


I have two questions about DTEDLayers.

1) How is it possible to change the Opaqueness of a DTEDLayer?
This is how I tried it:
This lines of code should be processed, when a special button of my user interface is pressed. If I ask for the new opaqueness (getOpaqueness()) the value is 135. But nothing happens. The DTEDLayer is already added to the MapHandler. If I let OpenMap show the palette to change DTED-Properties it works. Any ideas?

2) Is it possible to remove a DTEDLayer from the MapHandler and later add it again? I want to show DTED Level 0 until a defined scale-level is reached and then show DTED Level 1. To save memory I thought I remove DTED Level 1 until the application has the defined scale and then add it. Is this the right idea?

I already tried with:

The boolean which is returned is true for both lines of code. After the layer was removed it isn`t shown at the map anymore. This is great, but after I added the layer - it doesn`t appear on my map either. Can anyone help me with this topic?

Thanks a lot.

[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 Sat Apr 02 2005 - 04:26:10 EST

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