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

142
Views
Mapboxgl breaks when I change django language in settings

Basically my code works well when language in django settings.py is set to "en-us" But when I try to change it I get:

Uncaught Error: Invalid LngLat object: (NaN, NaN)
at new Ha (lng_lat.js:39:19)
at Function.convert (lng_lat.js:142:20)
at Rr.setLngLat (marker.js:337:31)
at dodaj_marker ((indeks):282:37)
at (indeks):296:9

I'm changing lang because I need to get months in different language, but how does it affect mapbox? Is there any mapbox language variable I have to edit in order to get it working ?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

It turned out that X and Y of a marker was formatted differently. Instead of X = 10.12345 and Y = 54.321 I got X = 10,12345 and Y = 54,321

.replace(",",".") fixed it

about 4 years ago · Santiago Trujillo 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!