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

191
Views
Mapbox getCanvas().toDataURL() not rendering markers

I'm trying to obtain a picture of a map using Mapbox. This should be very simple using map.getCanvas().toDataURL(); The catch is that I have markers on my map and these are not present when I obtain the image using the method mentioned above.

This is an example of what I'm experiencing: https://codepen.io/loskiorama/pen/YzeeMqm

Is there any way I could get a "screenshot" of my map that includes the markers? I'm bundling this on a single js file so I can't use solutions like html2canvas as I'd like to keep my file as small as possible.

Thanks!

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!