modaresimr / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
1 stars 0 forks source link

Get Bounding Box of current viewport #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Similar to GMap2's getBounds() or the BBOX coordinates sent with a Google Earth 
request.

Requested by: pabu

Supported by: billChadwick, jan.wischnat

Original issue reported on code.google.com by api.roman.public@gmail.com on 12 Aug 2008 at 8:46

GoogleCodeExporter commented 8 years ago
I think this feature is extremely important.

Original comment by heidtm...@gmail.com on 29 Oct 2008 at 6:23

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 29 Oct 2008 at 6:43

GoogleCodeExporter commented 8 years ago
I'd like this too (for the moment, I'll try using lookAt.getRange(), which I 
gather,
by trial-and-error, gives the width of the current view in meters (hey Google, 
what
about improving the documentation on getRange -- what does it return, exactly?  
In
general, I find GE documentation to be a bit skimpy.)

Original comment by elder....@gmail.com on 1 Nov 2008 at 5:41

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 2 Dec 2008 at 12:06

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 2 Dec 2008 at 12:11

GoogleCodeExporter commented 8 years ago
I also need this feature my application.  I was using the Network Link feature 
and
extracting the BBOX to get this information, however the Placemarks I generated
cannot be iterated if I create them using a KML file.

Where are the Placemark objects stored when they are generated via the Network 
Link
in this manner?  NetworkLink does not have a "getChildren()" method but when I
examine the getParentNode() of a Placemark passed to me through an event 
handler, it
claims its parent is a "NetworkLink".

Original comment by bteitl...@gmail.com on 21 Jan 2009 at 11:12

GoogleCodeExporter commented 8 years ago
Issue 127 has been merged into this issue.

Original comment by api.roman.public@gmail.com on 5 Feb 2009 at 8:36

GoogleCodeExporter commented 8 years ago
This long-requested feature is now available as of 5.0.11655.6079, as
GEView.getViewportGlobeBounds

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

Original comment by api.roman.public@gmail.com on 2 Apr 2009 at 12:06

GoogleCodeExporter commented 8 years ago
GEView.getViewportGlobeBounds is returning incorrect results. The results are 
outside of the viewing area. I need a function returning the coordinates of the 
corners of the current view.

Original comment by macarena...@hotmail.com on 9 Feb 2011 at 10:44

GoogleCodeExporter commented 8 years ago
To ensure you're getting the correct hit test result, please see comment 4 on 
Issue 361 .

Original comment by bcke...@google.com on 22 Feb 2011 at 11:07