This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user