Add map to sidebar. Refactor routing. Fix map css. Add map routes.
lbs-gitea/maptology/master This commit looks good
lbs-gitea/maptology/master This commit looks good
This commit is contained in:
@@ -5,7 +5,7 @@ import { BehaviorSubject } from 'rxjs/BehaviorSubject';
|
||||
|
||||
import { Map, TileLayer, LatLng, Marker, Circle, Icon, ZoomPanOptions } from 'leaflet';
|
||||
import { setInterval } from 'timers';
|
||||
import {LocationService} from "../../../location.service";
|
||||
import { LocationService } from '../../../location.service';
|
||||
|
||||
|
||||
@Component({
|
||||
@@ -60,6 +60,7 @@ export class MapComponent implements OnInit {
|
||||
if (this.currentShare) {
|
||||
// TODO: Swap with real API call.
|
||||
setInterval(() => {
|
||||
console.log('fetch location');
|
||||
this.setMapPosition(this.locationService.getLocation(), 13);
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user