My favorites | Sign in
Logo
             
New issue | Search
for
| Advanced search | Search tips
Issue 49: Programmatic access to info (lat/lng/alt/etc.) for a give x,y pixel location in view
19 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  api.roman.public
Closed:  Apr 2009
Type-Enhancement
Priority-Medium
Internal-1333206


Sign in to add a comment
 
Reported by api.roman.public, Aug 12, 2008
The ability to query for any x,y pixel location in the current view the latitude, longitude, altitude, is on globe, etc. properties for that location. 

Requested by: Mark G.

Supported by: Pedro Melo
Comment 1 by api.roman.public, Aug 20, 2008
(No comment was entered for this change.)
Labels: Internal-1333206
Comment 2 by gf...@comcast.net, Oct 06, 2008
At least support something similar to the COM API's GetPointOnTerrainFromScreenCoords
method.  
Comment 3 by api.roman.public, Oct 29, 2008
(No comment was entered for this change.)
Status: Accepted
Comment 4 by belitre, Feb 18, 2009
Perhaps this limitation could be solved within this issue:

The range in the following function:

ge.getView().copyAsLookAt(ge.ALTITUDE_RELATIVE_TO_GROUND).getRange() 

doesn't take into account 3D buildings. It would be great if each point of each 3D
building could be an end point for getRange.
Comment 5 by lsa...@club-internet.fr, Mar 09, 2009
I totally agree with previous posts. This function (similar to COM
GetPointOnTerrainFromScreenCoords() function) is a "must have" to control navigation
with javascript code. Please, please, please... ;D
Best regards
Laurent
Comment 6 by api.roman.public, Apr 01, 2009
This is now available as of 5.0.11655.6079 and API v1.002 as GEView.hitTest

See the release notes, new Google Earth Plugin 5.0 samples, and updated v1.002 API
reference for more details.

http://code.google.com/apis/earth/documentation/releasenotes.html#2009-03-31
http://code.google.com/apis/earth/documentation/demogallery.html?topic=fiveoh
http://code.google.com/apis/earth/documentation/reference/index.html

Status: Fixed
Comment 7 by stuartpocknee, Nov 02, 2009
As of API v1.003, plugin 5.1.3509.4636 GEView.hitTest is returning incorrect results. 

Hit tests at each corner of the viewport returns results well outside of the viewing 
area.

See issue 361 for a code example.
Sign in to add a comment