Skip to content

Commit 12c6fbd

Browse files
Fix display issue when single marker is present only on the map.
Fixed issue that if only one marker is present on the map the map contents disappears after orientation change (caused by the use of focusMap function).
1 parent 123675d commit 12c6fbd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

static/js/on_load.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ function initMap() {
4444
);
4545
}
4646
function focusMap() {
47-
map.fitBounds(bounds);
47+
if (locations.length > 1) {
48+
map.fitBounds(bounds);
49+
}
4850
}
4951

5052
if (locations.length === 1) {

0 commit comments

Comments
 (0)