2016-05-02 16:55:58 +03:00
|
|
|
import {Component, ViewEncapsulation} from 'angular2/core';
|
|
|
|
|
import {RouteConfig} from 'angular2/router';
|
|
|
|
|
|
|
|
|
|
import {GoogleMaps} from './components/googleMaps';
|
2016-05-02 18:17:54 +03:00
|
|
|
import {LeafletMaps} from "./components/leafletMaps";
|
2016-05-03 10:51:59 +03:00
|
|
|
import {BubbleMaps} from "./components/bubbleMaps";
|
|
|
|
|
import {LineMaps} from "./components/lineMaps";
|
2016-05-02 16:55:58 +03:00
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'maps',
|
|
|
|
|
pipes: [],
|
|
|
|
|
providers: [],
|
|
|
|
|
styles: [],
|
|
|
|
|
template: `<router-outlet></router-outlet>`
|
|
|
|
|
})
|
|
|
|
|
@RouteConfig([
|
|
|
|
|
{
|
|
|
|
|
name: 'GoogleMaps',
|
|
|
|
|
component: GoogleMaps,
|
|
|
|
|
path: '/google-maps',
|
|
|
|
|
useAsDefault: true
|
|
|
|
|
},
|
2016-05-02 18:17:54 +03:00
|
|
|
{
|
|
|
|
|
name: 'LeafletMaps',
|
|
|
|
|
component: LeafletMaps,
|
|
|
|
|
path: '/leaflet-maps',
|
|
|
|
|
},
|
2016-05-02 19:49:37 +03:00
|
|
|
{
|
|
|
|
|
name: 'BubbleMaps',
|
|
|
|
|
component: BubbleMaps,
|
|
|
|
|
path: '/bubble-maps',
|
|
|
|
|
},
|
2016-05-03 10:51:59 +03:00
|
|
|
{
|
|
|
|
|
name: 'LineMaps',
|
|
|
|
|
component: LineMaps,
|
|
|
|
|
path: '/line-maps',
|
|
|
|
|
},
|
2016-05-02 16:55:58 +03:00
|
|
|
])
|
|
|
|
|
export class Maps {
|
|
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|