React-native-mapbox-gl: Invalid LngLat latitude value: must be between -90 and 90

Created on 8 Jul 2018  路  3Comments  路  Source: nitaliano/react-native-mapbox-gl

How to setup start position in Los angelis when coordinates is 34.0544779, -118.2443409?!
image

Most helpful comment

Try by inverting lat and long ? Did you try with [-118, 34] ?

All 3 comments

Try by inverting lat and long ? Did you try with [-118, 34] ?

@VentsislavDinev this code snippet is for mapbox-gl-js this is the react-native repo you will want to open up issues here https://github.com/mapbox/mapbox-gl-js.

I agree that your coordinates look like they are in [lat, lng] order and they need to be in [lng, lat] order.

LMAO I thought I was doing something wrong on my end until I saw this error message on my Chrome debug window.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EwanValentine picture EwanValentine  路  3Comments

EugenePisotsky picture EugenePisotsky  路  4Comments

zeljkoX picture zeljkoX  路  4Comments

kristfal picture kristfal  路  3Comments

Gp2mv3 picture Gp2mv3  路  3Comments