openlayers / ol-cesium

OpenLayers - Cesium integration
http://openlayers.org/ol-cesium/
BSD 2-Clause "Simplified" License
968 stars 321 forks source link

Uncaught (in promise): [object Undefined] #1193

Closed lmarcelocc closed 1 month ago

lmarcelocc commented 2 months ago

Hello,

cesium: 1.117.0 olcs: ^2.20.0

const source = new OSM({
  attributions: '© OpenStreetMap contributors',
  opaque: false,
});

const tileLayer = new TileLayer({
  visible: this.osmLayerValue === osmId || isInitialData === true,
  source,
  zIndex,
  preload: Infinity,
});

Anyone now how to fix this issue?

Error: Uncaught (in promise): [object Undefined] scheduleMacroTaskWithCurrentZone | @ | zone.umd.js:724   | (anonymous) | @ | zone.umd.js:2465   | proto. | @ | zone.umd.js:1017   | render | @ | OLCesium.js:209   | onAnimationFrame | @ | OLCesium.js:250   | timer | @ | zone.umd.js:2441   | _ZoneDelegate.invokeTask | @ | zone.umd.js:445   | (anonymous) | @ | core.mjs:10757   | onInvokeTask | @ | core.mjs:10757   | _ZoneDelegate.invokeTask | @ | zone.umd.js:444   | onInvokeTask | @ | core.mjs:11070   | _ZoneDelegate.invokeTask | @ | zone.umd.js:444   | Zone.runTask | @ | zone.umd.js:210   | ZoneTask.invokeTask | @ | zone.umd.js:527   | ZoneTask.invoke | @ | zone.umd.js:516   | data.args. | @ | zone.umd.js:2421

Thanks in advance,

lmarcelocc commented 1 month ago

Hello, Maybe that's an issue from cesium

Was able to workaround it.