World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 07-17-2012, 03:23 PM   #1
aszilagyi
Junior Member
 
Join Date: Jul 2012
Posts: 1
aszilagyi is on a distinguished road
Default Obtaining Maximum Lat/Lon from GlobeCanvass

I have seen this has been an issue in the past, but I have yet to see a solution to this problem. I am developing an application in which the user sees a globe, which they can rotate and zoom. As the view changes markers should appear and disappear based on the current view of the globe. I feel I need to know the maximum latitude and longitude so I know which markers to place, but I do not know how to compute that.

Currently, I have a WorldWindGLCanvas, with the current markers viewed in a RenderableLayer. Markers are to be created and removed from the layer as the user moves the globe view. Are there any objects that I can use to compute these values?

(Note: these can be estimates, they do not have to be exact. if there is a way to obtain rough values, that will work too)
aszilagyi is offline   Reply With Quote
Old 07-20-2012, 06:15 PM   #2
tag
WWJ Technical Manager
 
Join Date: May 2007
Location: Seattle
Posts: 1,027
tag is on a distinguished road
Default

For the layers containing the markers, call setMinActiveAltitude() and setMaxActiveAltitude(). This will control display of the markers relative to the eye altitude.
tag is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Precision of Lat/Lon Coordinates neightl WorldWind General 1 08-16-2010 02:50 AM


All times are GMT +1. The time now is 04:49 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.