diff --git a/src/app/data/bus-stop/bus-stop.component.html b/src/app/data/bus-stop/bus-stop.component.html index 9058582..bd999c4 100644 --- a/src/app/data/bus-stop/bus-stop.component.html +++ b/src/app/data/bus-stop/bus-stop.component.html @@ -7,6 +7,7 @@
diff --git a/src/app/data/bus-stop/bus-stop.component.ts b/src/app/data/bus-stop/bus-stop.component.ts index b1b1f42..b9da32e 100644 --- a/src/app/data/bus-stop/bus-stop.component.ts +++ b/src/app/data/bus-stop/bus-stop.component.ts @@ -29,14 +29,13 @@ import { routerTransition } from '../../../animations/router.animation'; encapsulation: ViewEncapsulation.None, }) export class BusStopComponent extends StatementBase { - @ViewChild(MapItemsComponent) mapItems: MapItemsComponent + @ViewChild(MapItemsComponent) mapItems: MapItemsComponent; public regions: RegionSelectList[]; public states: StateCommonSelectList[]; public surfaceTypes: SurfaceTypeSelectList[]; public settlements: SettlementSelectList[]; public roads: RoadSelectList[]; public boolean: BooleanSelectList[]; - public position: string; constructor( protected service: BusStopService, @@ -45,9 +44,10 @@ export class BusStopComponent extends StatementBase { protected loadingService: TdLoadingService, ) { super(); - this.position = '51.513015907156756,-0.10334014892578126'; } - + public showOnMap(): void { + this.mapItems.showMap(); + } protected createColumnDefs(): any[] { return [ { diff --git a/src/app/data/map-items/map-items.component.ts b/src/app/data/map-items/map-items.component.ts index 723f1e7..0994bff 100644 --- a/src/app/data/map-items/map-items.component.ts +++ b/src/app/data/map-items/map-items.component.ts @@ -3,7 +3,7 @@ import * as L from 'leaflet'; @Component({ selector: 'map-items', template:` -