852 questions
0
votes
1
answer
375
views
Loading geoJSON to Cesium does not work but I get no errors
I try to pass data from PostGIS to Cesium, I believe the simpler way is to use GeoJSON.
To test it I do a query to my PostGIS to get some geoJSON data
SELECT ST_AsGeoJSON(mygeom)
FROM mytable where ...
1
vote
0
answers
327
views
How to deploy cesium-starter-app in Flask
I have a small web project running on a python flask microframework.
I have several .html pages working in the flask server with the @app.route method
@app.route('/')
def home():
return ...
-1
votes
1
answer
184
views
how to set properties for label and point correctly?
I am trying to add points to a map.
point : {
pixelSize : 8,
color : Cesium.Color.BLACK,
outlineColor : Cesium.Color.WHITE,
...
1
vote
1
answer
1k
views
How to select an entity using selectedEntity?
I am trying to select an entity using selectedEntity. I do it like this
btn.onclick = function() {
for (var i in viewer.dataSources._dataSources) {
if (viewer....
2
votes
1
answer
1k
views
How to remove entities from Cesium map?
I have successfully added a set of symbols as entities of a cesium viewer (map).
Now I'd like to clear all the symbols but when I try this:
viewer.entities.removeAll()
nothing happens.
What is the ...
1
vote
0
answers
87
views
Cesium,I want to obtain the feature information of all the layers I circle on cesium
I want to draw a red circle on the cesium map, and then get all the feature and building data information of the layer in the circle. Please help me. How do I operate?
0
votes
0
answers
103
views
Toggling on off button does not update the function
Using cesium JS, I want to add a button that would use the cesium zoom/camera feature to go to a new point when created and that is using my "myFunction" but I want it to continuously update ...
1
vote
0
answers
215
views
Why is cesium viewer's dataSourceDisplay out of sync in useEffect hook?
Context
In a parent component we're updating a list of points of interest (POI) containing lon/lat coordinates and an id.
We're then passing this list as a prop to a child component wrapping a resium'...
1
vote
0
answers
156
views
cesium Ion REST API upload to S3 access denied
I’m using the cesium ion rest api to upload las file to cesium. It's a 3 part process. First you have to make a call to create the asset in ion, then it respond with the upload location access infos.
...
0
votes
1
answer
283
views
Simulate map click on cesium entities
I'm looking for a way to simulate mouse click on entity on cesium map, for automation tests using puppeteer or selenium..
or a way to convert cartesian2 or cartesian3 to a pixel xy position so I can ...
0
votes
1
answer
1k
views
Mapbox Tiling Service with Cesium
I have the Mapbox vector tiles on "Mapbox Tiling Service" (MTS). But I am not sure, how can I use MTS in my Cesium.js app. Does anyone have any insights into loading Tiles from MTS in Cesium?...
2
votes
1
answer
1k
views
Resium: how to prevent map from redraw upon any change of state?
I've got a sample Resium project that shows the map. I've added a simple onClick that sets some state which is NOT being used anywhere - I just set it. Still, it causes the entire map to redraw & ...
0
votes
1
answer
81
views
node js not behaving the same way on local and Google App Egine
I'm developing an app to upload .las file to cesium ion.
I have modified this code https://github.com/CesiumGS/cesium-ion-rest-api-examples/blob/main/tutorials/rest-api/index.js
To pass a file from ...
1
vote
1
answer
344
views
Load specific part of CZML file according to ID
In the Cesium demo here, you have the option to select choose what data you want to view by simple changing where you are reading the data from.
I want the "Satellites" button to only ...
4
votes
1
answer
1k
views
Cesium ScreenSpaceEventType LEFT_DOWN trigger LEFT_CLICK
i am trying to trigger Cesium ScreenSpaceEventType LEFT_DOWN but when i click on a point it triggers Cesium ScreenSpaceEventType LEFT_DOWN and Cesium ScreenSpaceEventType LEFT_UP.
i want to drag ...
0
votes
1
answer
629
views
cesium: how to check two entities have overlapping area?
enter image description here
I want to check if the two entities have a same area, is Cesium has some apis or functions to do this ?
2
votes
1
answer
467
views
Cesium handling Multiple polygons with callback
i draw 2 polygons using callback method
Consider i have 2 polygons ABC and DEF a. When i dragin corners of ABC polygon it works perfectly. when i drag second polygon i-e i draged DEF then ABC ...
0
votes
1
answer
1k
views
Cesium Draw and Measure tools for 2D maps?
I am using Cesium to display a strictly 2D map in the browser (wrapped in React using the Resium library).
I am interested in giving the user the option to draw lines\polygons, and to measure the ...
3
votes
0
answers
128
views
Map rotation event actions not working on Cesium
I am using Cesium v1.93.0 along with Resium v1.14.3 on React 16.8. I want to include basic action of middle click or ctrl + left click functionality for map rotation on 2D Maps.
I am currently using ...
0
votes
2
answers
592
views
Declare a global when building an Angular library
I posted the following on the AngularCesium github as an issue (because I figured they had some experience with this problem as they need "Cesium" in their scope too).
Since their Github is ...
0
votes
1
answer
1k
views
Cesium polygon callback using javascript
I am trying to edit the change the edit or redraw the polygon. this is my code.
Error
An error occurred while rendering. Rendering has stopped.
TypeError: this._callback is not a function
TypeError: ...
0
votes
2
answers
513
views
How to remove a Cesium event listener after use Angular?
I have a function that adds a Cesium event listener in a subscription.
I would like to know how to remove it after use.
Here is my code :
this.layerService.visibilityChange.subscribe((layer){
...
1
vote
1
answer
850
views
How to listen the load event of specific layer on Cesium
According to this answer https://stackoverflow.com/a/67883291/14326456, I am now able to know when tiles on globe are loaded. However, I would like to know if there is a way to listen loading event on ...
0
votes
1
answer
386
views
C++ member variables are not initialized when using a debug version static library
Environment: Windows10, cpp17, visual studio 2019, debug version static library
Recently I tried to use Cesium-Native to read 3DTiles files in my project, but there was a confusing problem that some ...
1
vote
0
answers
150
views
Offsetting Cesium zoom by pixels
In the UI we have a floating panel occupying the 30% - 40% percent of the screen width and we have a Cesium background map. The mock image below has dots. At the moment we can zoom the view, so that ...
1
vote
0
answers
674
views
Cesium - label above billboard don't show properly in entity, it become darker
I need label above billboard image. The label color is white, But it become dark.
Here is code. disableDepthTestDistance seems necessary.
viewer.entities.add({
position: Cesium.Cartesian3....
-1
votes
1
answer
2k
views
Cesium and Geoserver WMS
I've got problem with wms heatmap layer in cesium. I know how to handle it in openlayers (single tile) and in leaflet (non tiled plugin) but I don't know how to handle it on 3d globe.
Here is my ...
1
vote
1
answer
815
views
Remove Event Listeners in Cesium
I searched quite a bit to find out the correct way to remove event listeners in Cesium. I believe the confusion I have is around whether to treat Cesium events as regular dom events (due to a lack of ...
0
votes
1
answer
467
views
I can't create cesium asset with react and axios
I'm trying to upload .las file to cesium.com.
I'm using reactjs.
In cesium rest api, you have to create an asset on cesium, then upload the file to S3, then tell cesium where the file is on s3.
They ...
0
votes
0
answers
271
views
How do I modify the shaded parts of the PBR?
Hello everyone!
I added 3dtiles data in Cesium, I want it to render more realistic, so I added a pbr function to it
**At some angles, the model looks bright:**
But the shaded part looks strange,my ...
0
votes
1
answer
2k
views
How to display GeoJSON on Cesium
I've a Django app that lets you run a spatial query and displays the result in the form of a GeoJSON polygon on a Leaflet map.
Here's how I did it on Leaflet: I took the geometry that's stored in the ...
1
vote
1
answer
678
views
How to draw a gizmo in CesiumJS
How to draw a gizmo by giving it a position, orientation and eventually a scale in a CesiumJS application?
By gizmo I mean a 3-axes right-handed reference frame using (x,y,z) vectors, ideally depicted ...
0
votes
1
answer
641
views
Efficiently fetch glTF data from an API GET endpoint within a CesiumJS client app
I am trying to build a small sandbox CesiumJS app for pedagogic purposes.
For that, I need to query some small glTF assets (2 small flat squares build from 4 simple triangles) available at an existing ...
1
vote
1
answer
451
views
How to properly fetch JSON data from an API GET endpoint within a CesiumJS client app
I'm scratching a vanilla CesiumJS demo application from the 1.73 branch.
I left untouched the server.cjs file, but I added one custom client implementation file as Apps/myproject/my.js
As I need to ...
1
vote
1
answer
567
views
How to get rotated rectangle’s corner coordinates?
I am trying to get a corner coordinates of rotated rectangle. Then, create a polygon with these coordinates.
So far, I tried to use Rectangle.nortwest, southeast etc. functions but it gives me ...
-1
votes
1
answer
757
views
looking for a free self-hosted google earth alike service
I need to setup a google earth alike service, which I can self-host the elevation data and map tile data on a VPS such as EC2.
I briefly researched the following resources:
Cesium
OpenElevation
...
2
votes
0
answers
314
views
Cylinders causing frame drops to 10 fps in cesium / resium
hope you are good.
For my university project, I am using resium (cesium react version) to depict the satellites on the globe along with its orbits and footprints. Till the satellite depiction with ...
0
votes
1
answer
703
views
Cesium : Set height offset on SampledProperty with ClampToGround
I'm using a sandcastle example to animate an entity by using SampledProperty and clampToGround methods. I want to add height distance between entity and the path on which it is moving.
I have tried ...
0
votes
1
answer
570
views
How to get boundary box corner in CRS units in Cesium?
For my project, I am using cesium to display on a map WMS layers (On 2D map).
To increase performances, I use the provider SingleTileImageryProvider to request an only tile.
The point is : the request ...
1
vote
2
answers
1k
views
How to get correct distance between tracked entity and camera in Cesium Js?
I want to get distance between an entity and camera in meters. To achieve that I'm passing cartesian3 positions of camera and entity in Cesium.Cartesian3.distanceSquared. It seems distance is ...
3
votes
2
answers
756
views
Cesium separate timeline widget is not working properly
I want to display cesium clock and timeline widget inside a different div container outside of the cesium container. With the help of this link I've created a separate clock widget and applied ...
-1
votes
1
answer
475
views
CESIUM ERROR "ReferenceError: $ is not defined " (writing in SANDCASTLE)
$.ajax({
type: "GET",
dataType: "json",
url: "https://reqres.in/api/unknown/2",
success: function(data){
console.log(data)
}
});
i tried insesrt:
<...
0
votes
1
answer
398
views
how to request an unique tile for wms layer in cesium?
I am trying to create a kind of timeline using cesium, WMS server and layers. I am currently using WebMapServiceImageryProvider but it gives me a layer in many tiles. For my timeline I would like to ...
0
votes
0
answers
72
views
Offline 3d map and functionalities such as simulation,3D map for routing, slope aspect, viewshed, object elevation control
The objective is
• Web based 3D solution that works on intranet
• If background maps need to be created, we will test this (action)
• How many functions we want to see on 3D web portal –
a) ...
1
vote
0
answers
48
views
Does Cesium JS offer support for saving the users current instance of the viewer?
What I'm looking to achieve is the ability to save the users current state/session of their cesium instance so that when they go onto the website at a later date, they're able to continue where they ...
1
vote
0
answers
283
views
How to use singleTileImageryProvider with cesium?
I am currently using cesium to display layers from WMS server on my app, with angular.
For the moment, i am using WebMapServiceImageryProvider that gives me layers with tilling scheme.
To increase ...
2
votes
0
answers
811
views
Lighting problems with Cesium loading 3DTiles models
I have come across some tough problems in my work recently, Just as the title describes, I have some 3dtiles data that needs to be loaded into Cesium, But the model in my data is always affected by ...
1
vote
2
answers
1k
views
Cesium JS -Disable resizing of billboard labels and provide a fixed size
How can we disable resizing of billboard labels ? I have restricted the resizing of the image itself by using the sizeInMeters property. However when I zoom in or out the label associated with the ...
1
vote
1
answer
380
views
cesium I have 10,000 entities, how can I do not try a loop approach to change their material?
From
new Cesium.PolylineGlowMaterialProperty({
glowPower: 0.15,
color: Cesium.Color.fromCssColorString("rgba(42,92,170, 0.15)")
});
To
new Cesium....
1
vote
1
answer
698
views
How to draw semi ellipsoid clamp to ground
Here, i am using the below code for 3D map. And this creates semi ellipsoid below the ground surface in case of terrain area.
var viewer = new Cesium.Viewer("cesiumContainer", {
terrainProvider: ...