mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
parent
688a610d49
commit
5c2aadc994
2 changed files with 3 additions and 5 deletions
|
@ -21,7 +21,7 @@ import { resolve } from 'path';
|
|||
import { Legacy } from 'kibana';
|
||||
|
||||
// @ts-ignore
|
||||
import emsClient from './common/ems_client';
|
||||
import { EMSClient } from './common/ems_client';
|
||||
|
||||
import { LegacyPluginApi, LegacyPluginInitializer } from '../../../../src/legacy/types';
|
||||
|
||||
|
@ -36,9 +36,7 @@ const tileMapPluginInitializer: LegacyPluginInitializer = ({ Plugin }: LegacyPlu
|
|||
injectDefaultVars: server => ({}),
|
||||
},
|
||||
init: (server: Legacy.Server) => {
|
||||
server.expose({
|
||||
ems_client: emsClient,
|
||||
});
|
||||
server.expose('EMSClient', EMSClient);
|
||||
},
|
||||
config(Joi: any) {
|
||||
return Joi.object({
|
||||
|
|
|
@ -26,7 +26,7 @@ export function initRoutes(server, licenseUid) {
|
|||
const serverConfig = server.config();
|
||||
const mapConfig = serverConfig.get('map');
|
||||
|
||||
const emsClient = new server.plugins.tile_map.ems_client.EMSClient({
|
||||
const emsClient = new server.plugins.tile_map.EMSClient({
|
||||
language: i18n.getLocale(),
|
||||
kbnVersion: serverConfig.get('pkg.version'),
|
||||
manifestServiceUrl: mapConfig.manifestServiceUrl,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue