Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

192
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda