From ffddaf643ac578cf9b5b9a82a759e606ac5417c4 Mon Sep 17 00:00:00 2001 From: Dereck Lynch Date: Tue, 17 Mar 2020 13:49:23 -0400 Subject: [PATCH 1/2] fix tracking --- packages/geo/src/lib/map/shared/map.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/geo/src/lib/map/shared/map.ts b/packages/geo/src/lib/map/shared/map.ts index 98f5540397..9698ab35c1 100644 --- a/packages/geo/src/lib/map/shared/map.ts +++ b/packages/geo/src/lib/map/shared/map.ts @@ -371,6 +371,7 @@ export class IgoMap { // TODO: Create a GeolocationController with everything below geolocate(track = false) { + console.log('"dsadsadsa"'); let first = true; if (this.geolocation$$) { track = this.geolocation.getTracking(); @@ -393,8 +394,12 @@ export class IgoMap { ) ) { this.overlay.dataSource.ol.removeFeature(this.geolocationFeature); + } + + if (this.bufferFeature) { this.buffer.dataSource.ol.removeFeature(this.bufferFeature); } + this.geolocationFeature = new olFeature({ geometry }); this.geolocationFeature.setId('geolocationFeature'); this.overlay.addOlFeature(this.geolocationFeature); From 279ea329f24e7ed698d093e0d38ebcc8baceeac9 Mon Sep 17 00:00:00 2001 From: Dereck Lynch Date: Tue, 17 Mar 2020 13:51:05 -0400 Subject: [PATCH 2/2] remove console.log --- packages/geo/src/lib/map/shared/map.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/geo/src/lib/map/shared/map.ts b/packages/geo/src/lib/map/shared/map.ts index 9698ab35c1..d2664302fc 100644 --- a/packages/geo/src/lib/map/shared/map.ts +++ b/packages/geo/src/lib/map/shared/map.ts @@ -371,7 +371,6 @@ export class IgoMap { // TODO: Create a GeolocationController with everything below geolocate(track = false) { - console.log('"dsadsadsa"'); let first = true; if (this.geolocation$$) { track = this.geolocation.getTracking();