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

178
Views
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 answers
Answer question

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 Report
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!