852 questions
0
votes
0
answers
76
views
How to create a HUD-like overlay in a CesiumJS canvas (non-html)?
I want to draw a HUD overlay to a CesiumJS (webgl) canvas that contains some rapidly changing data (such as current flight speed of an airplane).
I can do that by adding a Cesium Billboard with my ...
0
votes
0
answers
80
views
Problem with Cesium + OpenLayers integration with React
So, i have ol 10.5.0, olcs 2.22.1 and cesium 1.131.0 packages installed in my react + vite app. OpenLayers works fine, but when i try to use it with cesium i get 2 problems:
First - when i use ES6 ...
0
votes
0
answers
22
views
Cesium Tiled imagery non-contiguous layers (telling Cesium which tiles to fetch TMS)
I have a TMS tileset comprising layers: [13, 15, 17, 19]. However, CesiumJS attempts to fetch all the layers in between. I don't want it to; I want to be able to tell cesium which layers to fetch.
Is ...
1
vote
0
answers
47
views
How to make Cesium billboard invisible when they are blocked by terrain?
How to make Cesium billboard invisible when they are blocked by terrain ?
When there's terrain in the front, billboard icons are still visible. And here's the code:
map3d.entities.add({
...
1
vote
1
answer
122
views
How to Check if a Point is Inside a Polygon in Cesium (Including 180° Meridian and Poles)
In Cesium, given a set of latitude and longitude points that form a polygon with entity appearances as shown in the figure, if I specify a point P, how can I determine whether this point lies inside ...
1
vote
0
answers
44
views
How to Obtain the Point Set of the Intersection Line Between a 3D Entity and the Ground in Cesium
This is a cone entity, and now it intersects with the ground, forming a circular intersection line. Is there a method to obtain the collection of points that make up this intersection line? If the ...
1
vote
1
answer
64
views
How to render only the parts of entities above the ground in Cesium?
When I add a cylindrical solid to the scene, I notice that the part below the ground is still visible. Is there any way to display only the portion above the ground?enter link description here
const ...
1
vote
1
answer
82
views
How to Properly Render a Cone Entity in Cesium
I added a cone entity to the scene, but when my viewpoint gets close to the cone, parts of it disappear. How can I avoid this issue?
const viewer = new Cesium.Viewer("cesiumContainer", {...
0
votes
0
answers
57
views
Calling Cesium viewer.camera.flyTo from a Button Click Event Doesn't Trigger Camera Movement
I'm trying to call viewer.camera.flyTo from within an event listener (attached to a button click), but the flyTo only works if I call it outside the event listener (i.e. on load). When I trigger it ...
0
votes
0
answers
17
views
Cesium polyline circle wider at one end
Looking at Cesium's polyline sandcastle example, is there a way to construct a curved circle polyline where one end has a wider radius than the other?
0
votes
0
answers
72
views
An error occurred in "WebMapServiceImageryProvider": Failed to obtain image tile X: 1 Y: 0 Level: 0
i have 2 images .tiff and serve the rgb with geoserver and for second image i use global mapper for "Cesium tile format" and the result is folder with x/y/z.terrian files
my geoserver image ...
0
votes
0
answers
53
views
Height alignment for point cloud not correct
I have .las file, which doesn't have any CRS information. So I add it using lastolas, as I know the UTM zone data belongs to (UTM 43N):
las2las.exe -i input.las -o output.las -epsg 32643
I can see ...
0
votes
0
answers
59
views
How can you store the contents of a TextBox even after being updated?
So I am quite new to Javascript, and I am trying to create a Cesium map that displays aircraft flying overhead (this is a simplification, but all that's needed to answer). Everything is working so far,...
0
votes
0
answers
42
views
unable to zoom to given geojson data in cesium
I am unable to zoom to given geojson data in cesium primarily because data is also not visible on cesium.
I am using the following code:
const geoJsonUrl = 'visibility.geojson';
Cesium....
0
votes
0
answers
44
views
How to convert a Tileset generated by 3dcitydb/impexp export-vis to a tileset.json and .b3dm tiles?
I have lod2 building models loaded into 3dcitydb.
What I would like to achieve is to export these buildings into tiles that are compatible with iTowns (https://www.itowns-project.org/itowns/examples/)....
0
votes
0
answers
56
views
cesium tile 'hanging' on deckgl
I am trying to render cesium point tiles with deckgl, with mapbox basemap.
index.js
import { load } from '@loaders.gl/core';
import {Tileset3D} from '@loaders.gl/tiles';
import { CesiumIonLoader } ...
1
vote
1
answer
133
views
Issue with 3D Visualization (Angular + ol-cesium), flashes on change
I created a new Angular project that uses ol-cesium.
Here are the versions I am working with:
Angular v19
olcs 2.22.1
Cesium 1.123
ol 10.3.1
The problem is that any operation I perform while using ...
1
vote
1
answer
256
views
Issue with py3dtiles to cesium 3d tiles conversion
I am running this command to convert las file to cesium points cloud tiles:
py3dtiles convert mypointcloud.las --out cesiumtiles/output
This generates tile data, and I upload it to cesium ion viewer....
0
votes
0
answers
68
views
Gradient polyline in cesium. js
Is there any way to display gradient polyline in cesium.js? Color will matter from speed like on garmin or strava. First get the color for first point, count percents of speed beetwen min speed and ...
1
vote
0
answers
17
views
The shadow area of the Cesium3DTileset on the ground
I want to ask about how to calculate the shadow of a Cesium3DTileset on the ground. Currently, I am following this logic:
Obtain the boundingSphere of the Cesium3DTileset.
Calculate the position of ...
1
vote
0
answers
146
views
Is Cesium.js able to handle 3DTileset in CRS different from EPSG:4978
If I have a tileset generated in EPSG:7664 is it possible to load it in Cesium and how to tell it that coordinate system reference is different from the default EPSG:4978?
I found it the 3D tiles ...
1
vote
0
answers
47
views
vue-cesium - how reduce the height of the 3d tiles layer relative to the ground?
vue-cesium - how reduce the height of the 3d tiles layer relative to the ground?
here is my vue 3 component:
<template>
<vc-viewer>
<vc-layer-imagery>
<!-- this ...
0
votes
2
answers
251
views
how to point to sun and moon in cesiumjs?
CesiumJS does properly simulatr both Sun and Moon positions in realtime, but for some reasons they are apparently not directly accessible: Moon object is just an ellipsoid, placed "somewhere"...
0
votes
1
answer
223
views
Is it possible to use a cog RGB GeoTiff with ol-cesium in 3D
I am trying to load a cloud-optimized RGB geotiff, using ol-cesium:
new TileLayer({
source: new GeoTIFF({
sources: [
{
url: "my_rgb_cog.tiff",
...
0
votes
1
answer
51
views
Change in rectangles after ol-cesium 2.15.0
I am using polygons in my website, built with Openlayers and ol-cesium.
These polygons used to be correct when in 3D (i.e. lines are not supposed to be straight in the 3D view).
This used to work ...
1
vote
2
answers
215
views
I am not able to visualize the globe part of the Cesium JS [closed]
I am a beginner trying to learn to Cesium JS for Web GIS projects.I downloaded and installed the Cesium 1.119 library in my laptop. Now I am not able to see the basic globe part on the screen. I have ...
0
votes
1
answer
78
views
Cannot limit TileLayer with minZoom in ol-cesium
I have a map created with OpenLayers and ol-cesium.
I have created a tile layer that should only appear after a certain zoom level:
return new TileLayer({
minZoom: minZoom,
source: new XYZ({
...
1
vote
0
answers
198
views
Is it possible to adjust elevation of 3D data in CesiumJS?
I am new to CesiumJS, but have the following code which focuses on Southern San Francisco and I have also drawn a red rectangle on top of the 3D World Terrain
<!DOCTYPE html>
<html lang="...
0
votes
0
answers
51
views
Use UTC DATE object rather than local date object
I am trying to show current UTC time rather than the local time using new Date().
Using (new Date()).toUTCString() does give the UTC string but I need the UTC object as I need to pass the value to ...
0
votes
2
answers
432
views
How to hide all UI Elements in Cesium?
I am trying to hide all elements in Cesium to get a plain UI. I have experimented with different properties in the JS API but wasn't able to remove all the UI elements and just keep the Earth Globe. ...
0
votes
1
answer
582
views
How to clamp a primitive to the ground
I need to draw a LOT of arrows and need they to be primitives because it is the only way to draw arrows on Cesium.
But I need depthTestAgainstTerrain to be setted as true too.
This will make my arrows ...
1
vote
1
answer
616
views
How to add a satellite and show its orbital path around the globe using CesiumJs?
I am creating a small project using CesiumJs. I want to add a satellite and the orbit of the satellite should be visible. I managed to add an entity as a red dot that resembles the satellite, now I ...
1
vote
1
answer
111
views
Created cesium wall can be seen through the surface(terrain)
First of all, I cut the earth by primitives so that it only shows specific local terrain then I create a underground entity wall around the specific area. But the wall can been seen through the ...
0
votes
0
answers
25
views
How to calculate positioning information in cesium?
Cesium has 3 longitude and latitude points p1, p2, and p3. A certain point sends a signal within the 3-point area, and the 3 points receive the signal respectively. The signal strength is between 0-1. ...
0
votes
1
answer
92
views
Create static polyline in CesiumJS
I create a GroundPolylinePrimitive with the material type PolylineDash. When I move the camera, the lines start to move. How can I make my polyline static?
My code:
let countyBorderPrimitive = new ...
0
votes
1
answer
102
views
How can I draw a sector with internal radius using Turf
I know I can draw a sector using Turf
What I need is to give another radius information, to "cut" the internal part of the sector, like the image ( consider the red polygon my goal ).
I ...
1
vote
0
answers
77
views
Issue with Cesium entity visibility control
I'm facing an issue with controlling the visibility of entities in Cesium.
sometimes it is abnormal when i changed the value of checkedList
I'm trying to toggle the visibility of entities, but I'm ...
1
vote
1
answer
360
views
Is the shader specified by the source attribute in Cesium fabric the equivalent of the frgamentshader in glsl?
Is the shader specified by the source attribute in Cesium fabric the equivalent of the frgamentShader in glsl?
If so, what attribute do I need to specify the vertexShader with, I can't find it in the ...
1
vote
0
answers
118
views
Why is the Cesium camera tracking a point that's offset quite far from the trackedEntity?
Why does the camera track a position offset from the the position of the trackedEntity when I load KML with a gxTrack?
The entity has an altitude, and the tracked position is always between the entity ...
1
vote
1
answer
427
views
How can I change the cesium lighting setup so the tiles appear the same zoomed in and out?
I have a sandcastle. However, a free key will be needed to make it work. The key can be obtained by going to https://www.maptiler.com/ to create a free account. Your key will then be on https://cloud....
1
vote
1
answer
228
views
How do I rotate a wall in CesiumJS?
const coordinates1 =
[103.63489648850312,29.78399543240111,103.63494150663065,29.78333590922089,103.635553885046,29.783280635414627,103.63574287140266,29.783196010558108,
103....
0
votes
0
answers
52
views
Eventlisteners not showing in browser console
I am creating a web application for cesium JS and have structured my project directory as follows:
Project
-node_modules
-public
-css
-data_3d
-Img
-js
...
1
vote
1
answer
772
views
How to use Ceisum EntityCollection
I am trying to use Cesium.EntityCollecion to manage some Entity Object. But it can't show on Earth.
Here is my code:
const viewer = new Cesium.Viewer("cesiumContainer");
const collection = ...
1
vote
0
answers
801
views
How can I exclude the https package when using vite?
The issue is trivial to reproduce with a default project:
yarn create vite my-vue-app --template vue
cd my-vue-app
yarn add cesium vite-plugin-cesium vite -D
Updating vite.config.js to:
// vite....
1
vote
0
answers
145
views
How to get elevation when click on building/terrain with Cesium.js and Google Map API
Currently I get elevation by click on autocomplete search input.
async function searchByAddressHandler( place_id ) {
await geocoder
.geocode( {placeId: place_id} )
.then( async ( {...
1
vote
1
answer
132
views
CZML Quaternion transformation using python
I want to use Python to develop the transformation module for my application (from .xml to .czml). However, I’m stuck on the Quaternion transformation part.
CesiumJS provides the function Transforms....
1
vote
0
answers
310
views
How can I configure vite in my vue app to serve cesiiumjs directories as static files?
I have a sample app at my-vue-app which demonstrates the problem.
The app builds and starts to run, but I get a lot of errors like:
Resource.js:2256 GET http://localhost:5173/Assets/...
0
votes
0
answers
320
views
Undefined symbols whilst building cesium in xcode
i am currently using Unity 2022.3.8f1 and XCode 14.2 and ARCore SDK for IOS 1.39 and Cesium(Latest) and Geospatial Creator to build an ar project. While building on XCode i get undefined symbol errors ...
1
vote
1
answer
211
views
Cesium model node rotation skews the model
I am testing simple model (from a .glb file) node rotation using Resium/Cesium and while it works well with a 3d-party model, it doesn't when when I try it on my own model. I don't know why.
The model ...
0
votes
1
answer
117
views
How do I load 3dtiles using Vue+cesium?
Based on the information I can find, I created the vue project and referenced Cesium, where Cesium says that cesium is not defined in the vue component.
Among them, I cited Cesium in Vue's public/...