Add map to sidebar. Refactor routing. Fix map css. Add map routes.
lbs-gitea/maptology/master This commit looks good

This commit is contained in:
Sebastian Roehl
2017-12-14 13:22:58 +01:00
parent 6d93e42226
commit cd871a9539
8 changed files with 3472 additions and 1589 deletions
@@ -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);
}