Commit cc1f838d5db7b836dfd81aca5ea0b2d6c1aad61d
1 parent
c7ec88cc
Change default sort direction
Fix fitBounds
Showing
2 changed files
with
8 additions
and
7 deletions
... | ... | @@ -20,12 +20,12 @@ import 'leaflet-providers'; |
20 | 20 | import 'leaflet.markercluster/dist/leaflet.markercluster'; |
21 | 21 | |
22 | 22 | import { |
23 | - FormattedData, | |
24 | - MapSettings, | |
25 | - MarkerSettings, | |
26 | - PolygonSettings, | |
27 | - PolylineSettings, | |
28 | - UnitedMapSettings | |
23 | + FormattedData, | |
24 | + MapSettings, | |
25 | + MarkerSettings, | |
26 | + PolygonSettings, | |
27 | + PolylineSettings, | |
28 | + UnitedMapSettings | |
29 | 29 | } from './map-models'; |
30 | 30 | import { Marker } from './markers'; |
31 | 31 | import { BehaviorSubject, Observable } from 'rxjs'; |
... | ... | @@ -222,6 +222,7 @@ export default abstract class LeafletMap { |
222 | 222 | this.bounds = this.bounds.extend(this.options.defaultCenterPosition); |
223 | 223 | } |
224 | 224 | this.map.fitBounds(this.bounds, { padding: padding || [50, 50], animate: false }); |
225 | + this.map.invalidateSize(); | |
225 | 226 | } |
226 | 227 | } |
227 | 228 | } | ... | ... |
... | ... | @@ -149,7 +149,7 @@ export class EntityTableConfig<T extends BaseData<HasId>, P extends PageLink = P |
149 | 149 | entityComponent: Type<EntityComponent<T, P, L>>; |
150 | 150 | entityTabsComponent: Type<EntityTabsComponent<T, P, L>>; |
151 | 151 | addDialogStyle = {}; |
152 | - defaultSortOrder: SortOrder = {property: 'createdTime', direction: Direction.ASC}; | |
152 | + defaultSortOrder: SortOrder = {property: 'createdTime', direction: Direction.DESC}; | |
153 | 153 | displayPagination = true; |
154 | 154 | defaultPageSize = 10; |
155 | 155 | columns: Array<EntityColumn<L>> = []; | ... | ... |