Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

189
Views
How to send custom JSON request from Cesium and process it's request

I'm trying to send a parallel request to a local server(in Nodejs) to get a custom json file(not geojson) like:

app.get('/json/:z/:x/:y', function (req, res) {
    return res.status(200).send(JSON.stringify({name:'hello'}));
});

Now I want to request from Cesium whenever any imagery tile is loading by passing z/x/y To achieve that I've created a separate ImageryLayer as given below:

viewer.scene.imageryLayers.addImageryProvider(new 
  Cesium.UrlTemplateImageryProvider({
   url: `http://localhost:2020/json/{z}/{x}/{y}`
}));

However, Above ImageryLayer is sending request to the server But as the server is not returning any image, i'm getting execptions. Also I don't know how to add it's callback to process the response.

So, Is there any best way to send a custom request and process it's response on the basis of current tile request (z/x/y) ? OR Is there any callback on can we create on default ImageryLayer to know what (z/x/y) was requested?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!