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

103
Vistas
Cesium js. Polyline hiding under the tile layer

I am trying to add the polyline using the following code in the viewer

const  polylineOptions = {
   mtype: 1,
   polyline: {
       clampToGround: false,
       material: {
           red: 0.9686274509803922,
           green: 0.8784313725490196,
           blue: 0.12549019607843137,
           alpha: 1
       },
       positions:[
            {
              x: 4587184.226708501,
              y: 263034.9288440118,
              z: 4408875.3130637
            },
            {
              x: 4587020.391536608,
              y: 263038.279352096,
              z: 4409044.42829542
            },
            {
              x: 4587020.391536608,
              y: 263038.279352096,
              z: 4409044.42829542
           }
         ]
       width: 3,
       zIndex: 1000
       },
   }
this.viewer.entities.add(this.polylineOptions);

but the behaviour is unexpected as follows

open this gif to see my result

and it is giving the following log in console

Entity polylines must have clampToGround: true when using zIndex.  zIndex will be ignored.

What I actually want is to draw a space line but with clampToGround:false options, it creates the polyline that id attached to the terrain but when I use clampToGround:false then it hides under the tilelayer as shown in the gif

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