Possible fix for map and logging statement
lbs-gitea/maptology/master This commit looks good

This commit is contained in:
Sebastian Roehl
2018-01-16 08:51:57 +01:00
parent 81d6ba111f
commit be6d4477ee
2 changed files with 2 additions and 1 deletions
@@ -107,7 +107,7 @@ export class MapComponent implements OnInit, OnDestroy {
}, 2000);
// subscribe to location updates
this.getLocation().subscribe(location => {
this.locationService.location.subscribe(location => {
this.consoleService.log('Lon: ' + location.coordinate.longitude + ' Lat: ' + location.coordinate.latitude);
if (location !== null) {
this.setMapPosition(location, 10);