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-12-11 11:08:15 +00:00
|
|
|
{
|
|
|
|
path: ':xCenter/:yCenter/:zoom/:rotation/:baseLayer',
|
|
|
|
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 { }
|