Re: [OpenMap Users] DTED

From: Davidian <kroberts_at_syrres.com>
Date: Fri, 20 Jun 2008 07:35:16 -0700 (PDT)

I'm currently having this same problem. It doesn't appear that the
setOpaqueness() method in the DTEDLayer is doing anything. Just like the
original poster, if I make a call to setOpaqueness(), and then call
doPrepare(), nothing happens.

How do I change the tranparancey level of a DTEDLayer while it is on the
map?

Thanks,

Kennedy



Tobias Gorgs wrote:
>
> Hi,
>
> I have two questions about DTEDLayers.
>
> 1) How is it possible to change the Opaqueness of a DTEDLayer?
> This is how I tried it:
>
> dtedLayer.setOpaqueness(135);
> dtedLayer.doPrepare();
>
> 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:
> mapHandler.remove(dtedLayer);
> mapHandler.add(dtedLayer);
>
> 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.
> Tobi
>
>
>

-- 
View this message in context: http://www.nabble.com/DTED-tp7399738p18030878.html
Sent from the OpenMap mailing list archive at Nabble.com.
--
[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 Fri Jun 20 2008 - 10:36:01 EDT

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