This line works for kml files but for kmz I get an error:
viewer.dataSources.add(Cesium.KmlDataSource.load(‘https://terra-dv.com/kml_test_noalt.kml’, {
camera: viewer.camera,
canvas: viewer.canvas,};
Security Error: Content at Terra-DV 3D Display may not load data from https://cesium.com/downloads/cesiumjs/releases/1.92/Build/Cesium/ThirdParty/Workers/z-worker-pako.js.
I had initial problem loading KML because oursite doesn’t have CORS enabled. Using https://terra-dv.com instead of https://www.terra-dv.com fixed it (no idea how!). Is that the problem here for KMZ?
Hi @DataVerse,
You may want to try uploading this data to Cesium ion and streaming it into CesiumJS at runtime that way.
I am not familiar with the security error that you are receiving. Has anyone else in the community received this error in the past?
-Sam
If possible I’d rather host the data on our site. It’s odd it’s fine with KML but not KMZ.
Not sure if anyone else had reported it.
Hi @DataVerse,
This error is new to me! I suspect that it may have something to do with your personal build/dev environment.
Is this related to Opening hyperlinks from KML file to YouTube freezes, but OK with right button - #3 by sam.rothstein?
If so, let’s try to consolidate this issue.
-Sam