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

268
Views
Cómo cambiar dinámicamente el color de la ruta en Cesium Viewer

Quiero cambiar dinámicamente el color de mi ruta gps que puse en un archivo czml según la velocidad de mi ruta. 0% de velocidad = azul, 100% = rojo. Mi camino que se fija en azul

Aquí está mi código que muestra el visor:

 var viewer = new Cesium.Viewer("cesiumContainer", { terrainProvider: Cesium.createWorldTerrain(), baseLayerPicker: false, shouldAnimate: true, }); viewer.dataSources.add(Cesium.CzmlDataSource.load(tabToCzml)).then(function (ds) { viewer.trackedEntity = ds.entities.getById("path"); });

Actualmente, el color de la ruta se define en el archivo czml como:

 "path": { "material": { "polylineOutline": { "color": { "rgba": [255, 255, 255, 200] }, "outlineColor": { "rgba": [0, 173, 253, 200] }, "outlineWidth": 5 } }, "width": 6, "leadTime": 0, "trailTime": 100000, "resolution": 5 } }
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!