Skip to content

Commit

Permalink
Merge branch 'release/3.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
flibbertigibbet committed Jan 16, 2020
2 parents 8b6ff17 + b989c8c commit 8d85b89
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 132 deletions.
4 changes: 2 additions & 2 deletions deployment/ansible/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ postgresql_support_psycopg2_version: "2.8.*"

packer_version: "1.4.4"

nodejs_version: 12.13.1
nodejs_npm_version: 6.13.1
nodejs_version: 12.14.1
nodejs_npm_version: 6.13.4

otp_router: "default"

Expand Down
10 changes: 7 additions & 3 deletions src/app/scripts/cac/map/cac-map-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,10 @@ CAC.Map.Control = (function ($, Handlebars, cartodb, L, turf, _, Utils) {
}

function fitToBounds(bounds) {
map.invalidateSize();
map.fitBounds(bounds);
if (map) {
map.invalidateSize();
map.fitBounds(bounds);
}
}

function setGeocodeMarker(latLng) {
Expand Down Expand Up @@ -348,7 +350,9 @@ CAC.Map.Control = (function ($, Handlebars, cartodb, L, turf, _, Utils) {
}
}
// Deal with Chrome mobile not always fully loading tiles
map.invalidateSize();
if (map) {
map.invalidateSize();
}
}

function clearDirectionsMarker(type) {
Expand Down
Loading

0 comments on commit 8d85b89

Please sign in to comment.