Skip to content

Commit

Permalink
chore: 🤖 remove maps url generators
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimkibana committed Jun 21, 2021
1 parent d651a91 commit 5d45ca9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 243 deletions.
12 changes: 0 additions & 12 deletions x-pack/plugins/maps/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import type {
} from '../../../../src/plugins/visualizations/public';
import { APP_ICON_SOLUTION, APP_ID, MAP_SAVED_OBJECT_TYPE } from '../common/constants';
import { VISUALIZE_GEO_FIELD_TRIGGER } from '../../../../src/plugins/ui_actions/public';
import { createRegionMapUrlGenerator, createTileMapUrlGenerator } from './url_generator';
import { visualizeGeoFieldAction } from './trigger_actions/visualize_geo_field_action';
import { filterByMapExtentAction } from './trigger_actions/filter_by_map_extent_action';
import { MapEmbeddableFactory } from './embeddable/map_embeddable_factory';
Expand Down Expand Up @@ -134,17 +133,6 @@ export class MapsPlugin
const emsSettings = new EMSSettings(plugins.mapsEms.config, getIsEnterprisePlus);
setEMSSettings(emsSettings);

// register url generators
const getStartServices = async () => {
const [coreStart] = await core.getStartServices();
return {
appBasePath: coreStart.application.getUrlForApp('maps'),
useHashedUrl: coreStart.uiSettings.get('state:storeInSessionStorage'),
};
};
plugins.share.urlGenerators.registerUrlGenerator(createTileMapUrlGenerator(getStartServices));
plugins.share.urlGenerators.registerUrlGenerator(createRegionMapUrlGenerator(getStartServices));

const locator = plugins.share.url.locators.create(
new MapsAppLocatorDefinition({
useHash: core.uiSettings.get('state:storeInSessionStorage'),
Expand Down
231 changes: 0 additions & 231 deletions x-pack/plugins/maps/public/url_generator.ts

This file was deleted.

0 comments on commit 5d45ca9

Please sign in to comment.