2018-03-31 03:30:30 +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';
|
|
|
|
import {ClientConfig} from '../../../../common/config/public/ConfigClass';
|
|
|
|
import {I18n} from '@ngx-translate/i18n-polyfill';
|
2018-12-08 05:06:13 +08:00
|
|
|
import {Utils} from '../../../../common/Utils';
|
2018-03-30 08:30:23 +08:00
|
|
|
|
2017-07-14 05:39:09 +08:00
|
|
|
|
|
|
|
@Component({
|
2018-05-04 07:17:08 +08:00
|
|
|
selector: 'app-settings-map',
|
2017-07-14 05:39:09 +08:00
|
|
|
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> {
|
2017-07-14 05:39:09 +08:00
|
|
|
|
2018-12-08 05:06:13 +08:00
|
|
|
public mapProviders: { key: number, value: string }[] = [];
|
|
|
|
public MapProviders = ClientConfig.MapProviders;
|
|
|
|
|
2017-07-14 05:39:09 +08:00
|
|
|
constructor(_authService: AuthenticationService,
|
|
|
|
_navigation: NavigationService,
|
2017-07-15 20:27:12 +08:00
|
|
|
_settingsService: MapSettingsService,
|
2018-03-30 08:30:23 +08:00
|
|
|
notification: NotificationService,
|
|
|
|
i18n: I18n) {
|
2018-03-31 03:30:30 +08:00
|
|
|
super(i18n('Map'), _authService, _navigation, <any>_settingsService, notification, i18n, s => s.Client.Map);
|
2018-12-08 05:06:13 +08:00
|
|
|
|
|
|
|
this.mapProviders = Utils.enumToArray(ClientConfig.MapProviders);
|
2017-07-14 05:39:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|