![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Nov 2011
Posts: 31
![]() |
Hi,
I am putting UserFacingIcons onto the map. I set their always on top attribute to true and it works fine. I then added a GlobeAnnotation beside each icon with some details about the icon and it also set their on top attribute to true. What I am seeing is the text falling behind the terrain when I change the tilt of the view. Why is it that the setAlwaysOnTop call on the GlobeAnnotation appears to have no effect? Regards, John. |
|
|
|
|
|
#2 |
|
WWJ Dev. Team
Join Date: May 2007
Posts: 449
![]() |
John, Would you please post a screenshot of this behavior? That would go a long way towards helping us diagnose this issue.
Thanks, Dave |
|
|
|
|
|
#3 |
|
Member
Join Date: Nov 2011
Posts: 31
![]() |
Hi Dave, thanks for the reply.
I've attached two screenshots. The first one shows the camera directly above the annotation and it is visible. The second has the earth with a slight tilt and as you can see it starts to become obscured by the terrain. Eventually, as I tilt the earth more the annotation completely disappears behind the terrain. Regards, John. |
|
|
|
|
|
#4 |
|
WWJ Dev. Team
Join Date: May 2007
Posts: 449
![]() |
John,
That's exactly what I needed to see. Thank you very much. The behavior you're seeing is a difference between how WWIcon and Annotation interpret their alwaysOnTop property. Here are two bullet points outlining the difference:
This difference causes Annotation to appear in front of other OrderedRenderables, but incorrectly appears behind the terrain as though alwaysOnTop was never set. This is likely a bug. I'll create an issue in the World Wind bug base mentioned on http://goworldwind.org. In the meantime, I'd recommend that you investigate whether it's possible to use PointPlacemark to replace your usage of Annotation. PointPlacemark was designed as a replacement for WWIcon and in some cases can also be used to replace Annotation. Thanks, Dave |
|
|
|
|
|
#5 |
|
Member
Join Date: Nov 2011
Posts: 31
![]() |
Hi Dave,
thanks for looking into this. For my purpose just now the PointPlacemark can be used as an alternative. What would happen if the globe annotation was to correctly use the always on top attribute and was to overlap another component with the same attribute set. Would they 'fight' for the top spot? Regards, John. |
|
|
|
|
|
#6 |
|
WWJ Dev. Team
Join Date: May 2007
Posts: 449
![]() |
John, Here are two bullet points outlining how Annotation would behave if it correctly interpreted the alwaysOnTop attribute:
Does that help clarify? Thanks, Dave |
|
|
|
|
|
#7 |
|
Member
Join Date: Nov 2011
Posts: 31
![]() |
Dave, this answers my question perfectly.
Thank you for your assistance. John. |
|
|
|
![]() |
| Tags |
| globeannotation drawing |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Placing panels on top of world wind globe, JLayeredPane and Transparency | jonathanknez | Development Help | 6 | 03-05-2012 09:23 PM |
| Need to hide GlobeAnnotation when something else clicked | jonathanknez | Development Help | 4 | 01-31-2012 01:25 AM |
| Rendering top WMS layers | jas511 | Development Help | 17 | 01-19-2012 02:23 AM |
| Rolling Thunder takes top honors at JavaOne | adanecito | Applications | 1 | 09-16-2010 09:15 PM |
| Putting a static image overlay on top of WorldWindowGLCanvas | Logan Williams | Development Help | 4 | 03-23-2010 06:24 PM |