Skip to content
Snippets Groups Projects
Commit 32d2213f authored by Olabarrieta Palacios, Ignacio's avatar Olabarrieta Palacios, Ignacio
Browse files

going from dots to slash in date definition... dot seems it stop to work.

parent 1cf1f174
No related branches found
No related tags found
No related merge requests found
...@@ -33,8 +33,8 @@ export class BikeTrajectoryComponent implements OnInit { ...@@ -33,8 +33,8 @@ export class BikeTrajectoryComponent implements OnInit {
chart_config: any = {} chart_config: any = {}
private map: L.Map; private map: L.Map;
private static MIN_DATE: number = new Date('2019.04.11').getTime() / 1000; private static MIN_DATE: number = new Date('2019-04-11').getTime() / 1000;
private static MAX_DATE: number = new Date('2021.02.20').getTime() / 1000; private static MAX_DATE: number = new Date('2021-02-20').getTime() / 1000;
private static BIO_LON: number = -2.9356732032001926; private static BIO_LON: number = -2.9356732032001926;
private static BIO_LAT: number = 43.26201529732467; private static BIO_LAT: number = 43.26201529732467;
private plys:object = {}; private plys:object = {};
...@@ -47,7 +47,7 @@ export class BikeTrajectoryComponent implements OnInit { ...@@ -47,7 +47,7 @@ export class BikeTrajectoryComponent implements OnInit {
public static clrs:any = ['#fef5f0', '#fbd7c4', '#f6a585', '#f37048', '#e23218', '#b40b02', '#630000']; public static clrs:any = ['#fef5f0', '#fbd7c4', '#f6a585', '#f37048', '#e23218', '#b40b02', '#630000'];
public sliderValue = new Date('2020.10.10').getTime() / 1000;; public sliderValue = new Date('2020-10-10').getTime() / 1000;;
toggleLbls: boolean = false; toggleLbls: boolean = false;
options = { options = {
...@@ -119,6 +119,7 @@ export class BikeTrajectoryComponent implements OnInit { ...@@ -119,6 +119,7 @@ export class BikeTrajectoryComponent implements OnInit {
get_day0(): void { get_day0(): void {
this.getDayService.getValues(this.day).subscribe(res => this.get_day(res), err => console.log(err)); this.getDayService.getValues(this.day).subscribe(res => this.get_day(res), err => console.log(err));
} }
get_pnts(data: any) { get_pnts(data: any) {
let gpss = data['gps']; let gpss = data['gps'];
for (let [key, value] of Object.entries(this.markers)) { for (let [key, value] of Object.entries(this.markers)) {
...@@ -149,7 +150,7 @@ export class BikeTrajectoryComponent implements OnInit { ...@@ -149,7 +150,7 @@ export class BikeTrajectoryComponent implements OnInit {
for(let j=0;j<data['quantiles'].length;j++){ for(let j=0;j<data['quantiles'].length;j++){
BikeTrajectoryComponent.qs[j] = data['quantiles'][j]; BikeTrajectoryComponent.qs[j] = data['quantiles'][j];
} }
console.log("get_day::: len(vals)=" + Object.keys(vals).length + ' maxval=' + BikeTrajectoryComponent.qs[BikeTrajectoryComponent.qs.length-1] + ' qs=' + BikeTrajectoryComponent.qs); //console.log("get_day::: len(vals)=" + Object.keys(vals).length + ' maxval=' + BikeTrajectoryComponent.qs[BikeTrajectoryComponent.qs.length-1] + ' qs=' + BikeTrajectoryComponent.qs);
if (BikeTrajectoryComponent.qs[BikeTrajectoryComponent.qs.length-1] < 10) { if (BikeTrajectoryComponent.qs[BikeTrajectoryComponent.qs.length-1] < 10) {
Object.keys(vals).forEach(id => { Object.keys(vals).forEach(id => {
this.markers[id].setStyle({ fillColor: 'blue' }); this.markers[id].setStyle({ fillColor: 'blue' });
...@@ -177,7 +178,7 @@ export class BikeTrajectoryComponent implements OnInit { ...@@ -177,7 +178,7 @@ export class BikeTrajectoryComponent implements OnInit {
} }
if ( this.legend != null ){this.map.removeControl(this.legend);} if ( this.legend != null ){this.map.removeControl(this.legend);}
this.create_legend(); this.create_legend();
console.log("get_day::: len(markers)=" + Object.keys(this.markers).length + ' updated'); //console.log("get_day::: len(markers)=" + Object.keys(this.markers).length + ' updated');
} }
create_legend() { create_legend() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment