2017-07-14 05:39:09 +08:00
|
|
|
import {Component} from "@angular/core";
|
|
|
|
import {MapSettingsService} from "./map.settings.service";
|
|
|
|
import {SettingsComponent} from "../_abstract/abstract.settings.component";
|
|
|
|
import {AuthenticationService} from "../../model/network/authentication.service";
|
|
|
|
import {NavigationService} from "../../model/navigation.service";
|
|
|
|
import {NotificationService} from "../../model/notification.service";
|
2017-07-15 18:47:11 +08:00
|
|
|
import {ClientConfig} from "../../../../common/config/public/ConfigClass";
|
2017-07-14 05:39:09 +08:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'settings-map',
|
|
|
|
templateUrl: './map.settings.component.html',
|
2017-07-15 18:47:11 +08:00
|
|
|
styleUrls: ['./map.settings.component.css',
|
|
|
|
'./../_abstract/abstract.settings.component.css'],
|
2017-07-14 05:39:09 +08:00
|
|
|
providers: [MapSettingsService],
|
|
|
|
})
|
2017-07-15 18:47:11 +08:00
|
|
|
export class MapSettingsComponent extends SettingsComponent<ClientConfig.MapConfig> {
|
|
|
|
public settings: ClientConfig.MapConfig = <ClientConfig.MapConfig> {
|
2017-07-14 05:39:09 +08:00
|
|
|
enabled: true,
|
|
|
|
googleApiKey: ""
|
|
|
|
};
|
|
|
|
|
|
|
|
constructor(_authService: AuthenticationService,
|
|
|
|
_navigation: NavigationService,
|
|
|
|
_settingsSettings: MapSettingsService,
|
|
|
|
notification: NotificationService) {
|
|
|
|
super("Map", _authService, _navigation, _settingsSettings, notification);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|