earthoutreach / earth-api-utility-library

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

option for util.displayKml to update camera #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to optionally look at the loaded KML.

Original issue reported on code.google.com by underbluewaters on 17 Jul 2009 at 5:38

GoogleCodeExporter commented 8 years ago
Attached a patch to add this functionality. It simply gets the abstractView 
from within the kml file and sets the 
plugin view. I tried using computeFitLookAt from ge-poly-fit-hack.js if it was 
available, but it didn't create an 
AbstractView for my kml files. I'm not sure if you have plans are for 
incorporating this function into the utility 
library, but it's worth considering.

Original comment by underbluewaters on 24 Jul 2009 at 4:09

Attachments:

GoogleCodeExporter commented 8 years ago
Oops. Ignore that last patch, this is the good one.

Original comment by underbluewaters on 24 Jul 2009 at 4:10

Attachments:

GoogleCodeExporter commented 8 years ago
Yep, good feature request. I'll take a look at the patch as soon as I have some 
time.

My original plan was to move some things like serializeView into a new namespace
gex.view and also port ge-poly-fit-hack.js there. Hopefully this patch will 
help with
the latter! Thanks!

Original comment by api.roman.public@gmail.com on 24 Jul 2009 at 11:02

GoogleCodeExporter commented 8 years ago
Implemented in trunk. I haven't updated the reference yet, but you can look at 
the
commit for sample usage:

http://code.google.com/p/earth-api-utility-library/source/detail?r=47

Original comment by api.roman.public@gmail.com on 9 Aug 2009 at 2:18