Fix centering issue for hub map when dispatching a job order. #270
This commit is contained in:
parent
2d023b5e69
commit
a21d0509fd
2 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue