Skip to content
Snippets Groups Projects
Commit 58b262eb authored by Tom Robinson's avatar Tom Robinson Committed by GitHub
Browse files

Merge pull request #3907 from nubank/fix-pinmap-lat-lon

Fix inverted latitude and longitude
parents 43e289df 8e503fb8
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