Hi @lennart.imberg,
Thank you for your reply.
Basically, I’m just experimenting with code available in several sandcastles and examples like these ones: Build a Flight Tracker – Cesium, Cesium Sandcastle, Cesium Sandcastle
All of these examples use Cesium.Cartesian in one place or another:
Flight Tracker Demo
const pointEntity = viewer.entities.add({
description: `First data point at (${dataPoint.longitude}, ${dataPoint.latitude})`,
position: Cesium.Cartesian3.fromDegrees(dataPoint.longitude, dataPoint.latitude, dataPoint.height),
point: { pixelSize: 10, color: Cesium.Color.RED }
});
Interpolation Demo
const position = Cesium.Cartesian3.fromDegrees(
lon + radius * 1.5 * Math.cos(radians),
lat + radius * Math.sin(radians),
Cesium.Math.nextRandomNumber() * 500 + 1750
);
property.addSample(time, position);
Clouds Demo
function createFrontLayerClouds() {
clouds.add({
position: Cesium.Cartesian3.fromDegrees(-122.666, 45.5126, 97),
scale: new Cesium.Cartesian2(400, 150),
maximumSize: new Cesium.Cartesian3(25, 12, 15),
slice: 0.36,
});
clouds.add({
position: Cesium.Cartesian3.fromDegrees(-122.6665, 45.5262, 76),
scale: new Cesium.Cartesian2(450, 200),
maximumSize: new Cesium.Cartesian3(25, 14, 12),
slice: 0.3,
});
}
Interestingly, not a single one of the sandcastles I just tested ran on the mobile version of Opera (didn’t check with Chrome, yet), so this might be a more general issue?
Best regards,
A.