FarmMapsLib/projects/common-map/src/fm-map/common-map-routing.module.ts

30 lines
714 B
TypeScript
Raw Normal View History

2020-01-07 21:27:46 +00:00
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { MapComponent } from './components/map/map.component';
import { AuthGuard } from '@farmmaps/common';
const routes = [
{
2020-01-20 16:31:09 +00:00
path: '', children: [
2020-01-07 21:27:46 +00:00
{
path: '',
component: MapComponent
}
]
},
{
2020-01-20 16:31:09 +00:00
path: ':xCenter/:yCenter/:zoom/:rotation/:baseLayer/:queryState', children: [
2020-01-07 21:27:46 +00:00
{
path: '',
component: MapComponent
}
]
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class MapRoutingModule { }