Skip to content
Snippets Groups Projects
Commit 8e503fb8 authored by Alessandro Andrioni's avatar Alessandro Andrioni Committed by Alessandro Andrioni
Browse files

Fix inverted latitude and longitude

parent 43e289df
No related branches found
No related tags found
No related merge requests found
......@@ -74,8 +74,8 @@ export default class PinMap extends Component {
const latitudeIndex = _.findIndex(cols, (col) => col.name === settings["map.latitude_column"]);
const longitudeIndex = _.findIndex(cols, (col) => col.name === settings["map.longitude_column"]);
const points = rows.map(row => [
row[longitudeIndex],
row[latitudeIndex]
row[latitudeIndex],
row[longitudeIndex]
]);
const bounds = L.latLngBounds(points);
return { points, bounds };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment