Fix centering issue for hub map when dispatching a job order. #270

This commit is contained in:
Korina Cordero 2019-12-17 03:12:45 +00:00
parent 2d023b5e69
commit a21d0509fd
2 changed files with 2 additions and 2 deletions

View file

@ -1486,7 +1486,7 @@ $(function() {
selectedHub = id;
// center the map
hmap.setCenter(lat, lng);
osm_hmap.flyTo(L.latLng(lat, lng));
} else {
// unhighlight this row
$(this).removeClass('m-table__row--primary');

View file

@ -1478,7 +1478,7 @@ $(function() {
selectedHub = id;
// center the map
hmap.setCenter(lat, lng);
osm_hmap.flyTo(L.latLng(lat, lng));
} else {
// unhighlight this row
$(this).removeClass('m-table__row--primary');