add: Modem model # now its own config. allowing for different options on different model #s
This commit is contained in:
@@ -604,8 +604,9 @@ function updateFleetMapFiltered(allUnits) {
|
||||
}
|
||||
});
|
||||
|
||||
// Fit bounds if we have markers
|
||||
if (bounds.length > 0) {
|
||||
// Only fit bounds on initial load, not on subsequent updates
|
||||
// This preserves the user's current map view when auto-refreshing
|
||||
if (bounds.length > 0 && !fleetMapInitialized) {
|
||||
const padding = window.innerWidth < 768 ? [20, 20] : [50, 50];
|
||||
fleetMap.fitBounds(bounds, { padding: padding });
|
||||
fleetMapInitialized = true;
|
||||
|
||||
Reference in New Issue
Block a user