• Jacob Magnusson's avatar
    Allow flipping mapbox coordinates to/from db · 86d2542b
    Jacob Magnusson authored
    The current Leaflet implementation expects coordinates in latitude-longitude order but GeoJSON and PostGIS works the other way around with lng first. These changes work around this behavior by passing the data to and from db through PostGIS’s `ST_FlipCoordinates` function if the setting `MAPBOX_FIX_POINT_COORDINATES` is something truthy. This is to not break the current behavior. Right now a warning is emitted when this setting hasn’t been enabled but I would recommend to remove this setting and make its behavior the default in the next major version.
    86d2542b
Name
Last commit
Last update
..
__init__.py Loading commit data...
test_basic.py Loading commit data...