2017-05-06 20:02:26 +03:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
|
|
|
|
|
|
import { MapsComponent } from './maps.component';
|
|
|
|
|
import { GmapsComponent } from './gmaps/gmaps.component';
|
|
|
|
|
import { LeafletComponent } from './leaflet/leaflet.component';
|
2017-07-26 15:40:20 +03:00
|
|
|
import { BubbleMapComponent } from './bubble/bubble-map.component';
|
2017-05-06 20:02:26 +03:00
|
|
|
|
|
|
|
|
const routes: Routes = [{
|
|
|
|
|
path: '',
|
|
|
|
|
component: MapsComponent,
|
|
|
|
|
children: [{
|
|
|
|
|
path: 'gmaps',
|
|
|
|
|
component: GmapsComponent,
|
|
|
|
|
}, {
|
|
|
|
|
path: 'leaflet',
|
|
|
|
|
component: LeafletComponent,
|
2017-07-26 15:40:20 +03:00
|
|
|
}, {
|
|
|
|
|
path: 'bubble',
|
|
|
|
|
component: BubbleMapComponent,
|
2017-05-06 20:02:26 +03:00
|
|
|
}],
|
|
|
|
|
}];
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
|
exports: [RouterModule],
|
|
|
|
|
})
|
|
|
|
|
export class MapsRoutingModule { }
|
|
|
|
|
|
|
|
|
|
export const routedComponents = [
|
|
|
|
|
MapsComponent,
|
|
|
|
|
GmapsComponent,
|
|
|
|
|
LeafletComponent,
|
2017-07-26 15:40:20 +03:00
|
|
|
BubbleMapComponent,
|
2017-05-06 20:02:26 +03:00
|
|
|
];
|