KML/KMZ file issue

93 views
Skip to first unread message

Umar Sharif

unread,
May 23, 2016, 2:18:22 PM5/23/16
to cesium-dev
I have a kmz file which loads in google earth properly this way:


In Cesium-1.17 it loads this way: (tilted)


And what I try to load on latest cesium it throws this err:



KmlDataSource now longer takes a proxy object. It takes an options object with camera and canvas as required properties. This will throw in Cesium 1.22.
zip.js:405 Uncaught SecurityError: Failed to construct 'Worker': Script at 'https://cesiumjs.org/Cesium/Source/ThirdParty/Workers/inflate.js' cannot be accessed from origin 'http://localhost:81'.inflate @ zip.js:405(anonymous function) @ zip.js:579init @ zip.js:210(anonymous function) @ zip.js:575reader.onload @ zip.js:182



Kindly help me with this.
Thanks

Hannah Pinkos

unread,
May 23, 2016, 4:37:19 PM5/23/16
to cesium-dev
Hello,

Regarding the Workers/inflate error, how are you adding Cesium to your application?  What does your <script> tag look like?
You should be using your own copy of Cesium, not linked to one on our website.

I don't think either of the errors are related to your visualization issue, however.  Are you using a LatLonQuad?  We don't have official support for this type yet, so that's why the image is turned.
For more information, look at the discussion in this issue: https://groups.google.com/d/msg/cesium-dev/x3sYLgIr8Mc/RH7qcJkgCQAJ

Best,

Hannah

Umar Sharif

unread,
May 24, 2016, 8:43:00 AM5/24/16
to cesiu...@googlegroups.com
Hello,
Inflate error come when I link from cesium website.
However I use Cesium-1.17 on my local system, image is tilted. This is the code:
    dataSource1 = new Cesium.KmlDataSource();
    dataSource1.load('data/LandPlan no box.kmz');
Reply all
Reply to author
Forward
0 new messages