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,12 +20,12 @@ import 'leaflet-providers'; | ||
20 | import 'leaflet.markercluster/dist/leaflet.markercluster'; | 20 | import 'leaflet.markercluster/dist/leaflet.markercluster'; |
21 | 21 | ||
22 | import { | 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 | } from './map-models'; | 29 | } from './map-models'; |
30 | import { Marker } from './markers'; | 30 | import { Marker } from './markers'; |
31 | import { BehaviorSubject, Observable } from 'rxjs'; | 31 | import { BehaviorSubject, Observable } from 'rxjs'; |
@@ -222,6 +222,7 @@ export default abstract class LeafletMap { | @@ -222,6 +222,7 @@ export default abstract class LeafletMap { | ||
222 | this.bounds = this.bounds.extend(this.options.defaultCenterPosition); | 222 | this.bounds = this.bounds.extend(this.options.defaultCenterPosition); |
223 | } | 223 | } |
224 | this.map.fitBounds(this.bounds, { padding: padding || [50, 50], animate: false }); | 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,7 +149,7 @@ export class EntityTableConfig<T extends BaseData<HasId>, P extends PageLink = P | ||
149 | entityComponent: Type<EntityComponent<T, P, L>>; | 149 | entityComponent: Type<EntityComponent<T, P, L>>; |
150 | entityTabsComponent: Type<EntityTabsComponent<T, P, L>>; | 150 | entityTabsComponent: Type<EntityTabsComponent<T, P, L>>; |
151 | addDialogStyle = {}; | 151 | addDialogStyle = {}; |
152 | - defaultSortOrder: SortOrder = {property: 'createdTime', direction: Direction.ASC}; | 152 | + defaultSortOrder: SortOrder = {property: 'createdTime', direction: Direction.DESC}; |
153 | displayPagination = true; | 153 | displayPagination = true; |
154 | defaultPageSize = 10; | 154 | defaultPageSize = 10; |
155 | columns: Array<EntityColumn<L>> = []; | 155 | columns: Array<EntityColumn<L>> = []; |