Change default sort direction
Fix fitBounds
This commit is contained in:
parent
c7ec88cc13
commit
cc1f838d5d
@ -20,12 +20,12 @@ import 'leaflet-providers';
|
||||
import 'leaflet.markercluster/dist/leaflet.markercluster';
|
||||
|
||||
import {
|
||||
FormattedData,
|
||||
MapSettings,
|
||||
MarkerSettings,
|
||||
PolygonSettings,
|
||||
PolylineSettings,
|
||||
UnitedMapSettings
|
||||
FormattedData,
|
||||
MapSettings,
|
||||
MarkerSettings,
|
||||
PolygonSettings,
|
||||
PolylineSettings,
|
||||
UnitedMapSettings
|
||||
} from './map-models';
|
||||
import { Marker } from './markers';
|
||||
import { BehaviorSubject, Observable } from 'rxjs';
|
||||
@ -222,6 +222,7 @@ export default abstract class LeafletMap {
|
||||
this.bounds = this.bounds.extend(this.options.defaultCenterPosition);
|
||||
}
|
||||
this.map.fitBounds(this.bounds, { padding: padding || [50, 50], animate: false });
|
||||
this.map.invalidateSize();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -149,7 +149,7 @@ export class EntityTableConfig<T extends BaseData<HasId>, P extends PageLink = P
|
||||
entityComponent: Type<EntityComponent<T, P, L>>;
|
||||
entityTabsComponent: Type<EntityTabsComponent<T, P, L>>;
|
||||
addDialogStyle = {};
|
||||
defaultSortOrder: SortOrder = {property: 'createdTime', direction: Direction.ASC};
|
||||
defaultSortOrder: SortOrder = {property: 'createdTime', direction: Direction.DESC};
|
||||
displayPagination = true;
|
||||
defaultPageSize = 10;
|
||||
columns: Array<EntityColumn<L>> = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user