gcode-mirror / earth-api-samples

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

Built in view extent and centering #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Views are different between the application and API. We need a way to make sure 
all the features in the KML file are visible, and to center on them all or on a 
single feature.

Requested by: DougH

Supported by: , jan.wischnat

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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
See here for a workaround function that'll give you a view of a rectangle 
(which you
could generate from feature extents)

http://groups.google.com/group/google-earth-browser-plugin/browse_thread/thread/
98604cb47514d453/52e06e2b5ef8d7a4#52e06e2b5ef8d7a4

Original comment by cds...@gmail.com on 3 Sep 2008 at 1:20

GoogleCodeExporter commented 9 years ago
And see the source code of this page for a full zoomToFeature() function:
http://www.tinyg.com/googlearthtest7.html

Original comment by cds...@gmail.com on 4 Sep 2008 at 5:38

GoogleCodeExporter commented 9 years ago
A method in the API to retrieve the windows bounding box data without 
having to send a view based refresh query to a server.

Something like:
GEWindow.getBBox()
or 
GEWindow.getWest()
GEWindow.getSouth()
GEWindow.getNorth()
GEWindow.getEast()

A workaround is to send the data to a server via a 
network link and then return the required data in a kml file.

Original comment by fraser.c...@gmail.com on 30 Sep 2008 at 10:09

GoogleCodeExporter commented 9 years ago
See issues:

http://code.google.com/p/earth-api-samples/issues/detail?id=39 (fly to feature)
http://code.google.com/p/earth-api-samples/issues/detail?id=42 (bounding box)

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