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

174
Vistas
mapbox gl js, connect points with line

I have a source with a geojson with a bunch of Features of type Point.

Is it possible to draw a line through them? I've tried Layout with type line, but it produces points...

I don't want to create an additional source with the same data.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Is it possible to draw a line through them?

No. For starters, Mapbox GL JS wouldn't know in which order to draw the line.

I don't want to create an additional source with the same data.

That would be the correct solution: simply construct a new GeoJSON on the fly that uses the coordinates of each point as the coordinates of a line LineString feature. I'm not sure what your reservations are.

about 4 years ago · Juan Pablo Isaza Denunciar
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