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

26 lines
624 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-10-31 10:45:03 +00:00
path: '',
component: MapComponent
2020-01-07 21:27:46 +00:00
},
{
2020-10-31 10:45:03 +00:00
path: ':xCenter/:yCenter/:zoom/:rotation/:baseLayer/:queryState',
component: MapComponent
2020-10-30 11:37:02 +00:00
},
{
2020-10-31 10:45:03 +00:00
path: ':queryState',
component: MapComponent
2020-10-30 11:37:02 +00:00
}
2020-01-07 21:27:46 +00:00
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class MapRoutingModule { }