Skip to content

Commit c0b196c

Browse files
committed
provide latitude before longitude on mapbox
1 parent 1bc2eb5 commit c0b196c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/traces/densitymapbox/hover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function getExtraText(trace, di, labels) {
4343
}
4444

4545
if(isAll || (hasLon && hasLat)) {
46-
text.push('(' + format(lonlat[0]) + ', ' + format(lonlat[1]) + ')');
46+
text.push('(' + format(lonlat[1]) + ', ' + format(lonlat[0]) + ')');
4747
} else if(hasLon) {
4848
text.push(labels.lon + format(lonlat[0]));
4949
} else if(hasLat) {

src/traces/scattermapbox/hover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function getExtraText(trace, di, labels) {
8686
}
8787

8888
if(isAll || (hasLon && hasLat)) {
89-
text.push('(' + format(lonlat[0]) + ', ' + format(lonlat[1]) + ')');
89+
text.push('(' + format(lonlat[1]) + ', ' + format(lonlat[0]) + ')');
9090
} else if(hasLon) {
9191
text.push(labels.lon + format(lonlat[0]));
9292
} else if(hasLat) {

0 commit comments

Comments
 (0)