chiranthsiddappa / earth-api-samples

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

KMZ remote loading via GE API is broken! #988

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I originally posted this in the google-ajax-examples area, but no one has paid 
it any attention yet:
https://code.google.com/p/google-ajax-examples/issues/detail?id=171

What steps will reproduce the problem?
1. Go to https://code.google.com/apis/ajax/playground/#fetch_good_kml
2. You will immediately see the pop-up error msg, saying "Bad or null KML"

What is the expected output? What do you see instead?
Expect "Good" KML to load and render.  It seems any kml/kmz with a 
3dWarehouse-hosted COLLADA model in it just can't load.  When did this break??  
If I manually paste the model's url in my browser, it downloads fine:

http://sketchup.google.com/3dwarehouse/download?mid=28b27372e2016cca82bddec656c6
3017&rtyp=k2

The error/alert message I get is:
"The page at https://savedbythegoog.appspot.com says:
Bad or null KML."

DAEs load fine still.

*NOTE: Your Monster Milktruck and Driving Simulator demos are also currently 
broken for this same reason.  Both of these demos use fetchKML to load a KMZ 
w/Collada model.
http://earth-api-samples.googlecode.com/svn/trunk/demos/milktruck/index.html
http://earth-api-samples.googlecode.com/svn/trunk/demos/drive-simulator/index.ht
ml

However, this example works, still.  Not sure what's different about his own 
hosted KMZ:
http://www.barnabu.co.uk/geapi/flightsim/

What version of the product are you using? On what operating system?
Installed Plugin Version: 7.1.2.2041
Chrome Browser on MacOSX 10.8

Please provide any additional information (code snippets/links) below.

Original issue reported on code.google.com by satyen.s...@gmail.com on 19 May 2014 at 5:44

Attachments:

GoogleCodeExporter commented 8 years ago
The issue with this is that 3dwarehouse, along with SketchUp, is now owned by 
Trimble, so all the URLs broke. The samples should be fixed, but otherwise the 
Earth API works fine.

Original comment by mano.ma...@gmail.com on 27 May 2014 at 10:00

GoogleCodeExporter commented 8 years ago
Thank you.  Just a follow-up:  In the Driving Simulator Demo, I noticed the url 
used for the 3D model is not actually a 3D Warehouse-hosted model.

in:
http://earth-api-samples.googlecode.com/svn/trunk/demos/drive-simulator/simulato
r.js
>
>> DDSimulator.MODEL_URL = 'http://earth-api-samples.googlecode.com/svn/trunk/' 
+ 'demos/drive-simulator/smart.kmz';

That's just the Driving Simulator demo.  The flight sim demo is using a 
barnabu.co.uk-hosted kmz, and the plugin loads that model fine.  The Monster 
Milktruck example is the only one of the three directly referencing 3d 
Warehouse.

https://developers.google.com/earth/documentation/demogallery

Original comment by satyen.s...@gmail.com on 28 May 2014 at 4:54