• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

88
Vistas
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 3 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

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 3 years ago · Santiago Trujillo 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 Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda