correct api-call for accidents

* possible map-fix with height/width
* adjust flex-layout dependency
This commit is contained in:
Tim Herbst 2020-12-27 17:47:04 +01:00
parent 9afb135d91
commit 46c5d2192a
5 changed files with 10 additions and 7 deletions

View File

@ -481,9 +481,9 @@
} }
}, },
"@angular/flex-layout": { "@angular/flex-layout": {
"version": "11.0.0-beta.33", "version": "10.0.0-beta.32",
"resolved": "https://registry.npmjs.org/@angular/flex-layout/-/flex-layout-11.0.0-beta.33.tgz", "resolved": "https://registry.npmjs.org/@angular/flex-layout/-/flex-layout-10.0.0-beta.32.tgz",
"integrity": "sha512-unfhw3abZuKtdwQicRStHCYGbANPTHYg4WNRQk/RC5Mxq+4WOp4Q8HI7GqRHCGUYDCGUP7w1sU/oDt8f09nM8w==", "integrity": "sha512-JvuY4dUoy5jyCTIrFiq7n30Znakh1pD3nbg0h0hs2r3t1OiDQb0ZSI1wcumosG/vYHsuJQTuNhbfaIZzA1x8nA==",
"requires": { "requires": {
"tslib": "^2.0.0" "tslib": "^2.0.0"
} }

View File

@ -16,7 +16,7 @@
"@angular/common": "~10.2.0", "@angular/common": "~10.2.0",
"@angular/compiler": "~10.2.0", "@angular/compiler": "~10.2.0",
"@angular/core": "~10.2.0", "@angular/core": "~10.2.0",
"@angular/flex-layout": "^11.0.0-beta.33", "@angular/flex-layout": "^10.0.0-beta.32",
"@angular/forms": "~10.2.0", "@angular/forms": "~10.2.0",
"@angular/material": "^10.2.7", "@angular/material": "^10.2.7",
"@angular/platform-browser": "~10.2.0", "@angular/platform-browser": "~10.2.0",

View File

@ -14,6 +14,10 @@ a {
background: #086ed2; background: #086ed2;
} }
#chart {
margin-right: 16px;
}
#submit-date-span { #submit-date-span {
padding: 10px; padding: 10px;
} }

View File

@ -1,7 +1,6 @@
.myApp { .myApp {
margin: 0; margin: 0;
height: 100vh; height: 100%;
width: 100vw;
} }
.toolbar-spacer { .toolbar-spacer {

View File

@ -137,6 +137,6 @@ export class MapService {
} }
private fetchAccidentGeoData(): Promise<any> { private fetchAccidentGeoData(): Promise<any> {
return this.client.get(environment.apiUrl + 'latest/accidents/').toPromise(); return this.client.get(environment.apiUrl + 'latest/accidents/2019').toPromise();
} }
} }