Skip to content

Commit de4d65c

Browse files
[Maps] Remove .mvt feature flag (#71779)
The layer wizard to add 3rd party .mvt tiles now shows by default.
1 parent 86733f6 commit de4d65c

File tree

5 files changed

+1
-12
lines changed

5 files changed

+1
-12
lines changed

x-pack/plugins/maps/config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export interface MapsConfigType {
1111
showMapVisualizationTypes: boolean;
1212
showMapsInspectorAdapter: boolean;
1313
preserveDrawingBuffer: boolean;
14-
enableVectorTiles: boolean;
1514
}
1615

1716
export const configSchema = schema.object({
@@ -21,8 +20,6 @@ export const configSchema = schema.object({
2120
showMapsInspectorAdapter: schema.boolean({ defaultValue: false }),
2221
// flag used in functional testing
2322
preserveDrawingBuffer: schema.boolean({ defaultValue: false }),
24-
// flag used to enable/disable vector-tiles
25-
enableVectorTiles: schema.boolean({ defaultValue: false }),
2623
});
2724

2825
export type MapsXPackConfig = TypeOf<typeof configSchema>;

x-pack/plugins/maps/public/classes/layers/load_layer_wizards.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import { mvtVectorSourceWizardConfig } from '../sources/mvt_single_layer_vector_
2727
import { ObservabilityLayerWizardConfig } from './solution_layers/observability';
2828
import { SecurityLayerWizardConfig } from './solution_layers/security';
2929
import { choroplethLayerWizardConfig } from './choropleth_layer_wizard';
30-
import { getEnableVectorTiles } from '../../kibana_services';
3130

3231
let registered = false;
3332
export function registerLayerWizards() {
@@ -60,10 +59,6 @@ export function registerLayerWizards() {
6059
// @ts-ignore
6160
registerLayerWizard(wmsLayerWizardConfig);
6261

63-
if (getEnableVectorTiles()) {
64-
// eslint-disable-next-line no-console
65-
console.warn('Vector tiles are an experimental feature and should not be used in production.');
66-
registerLayerWizard(mvtVectorSourceWizardConfig);
67-
}
62+
registerLayerWizard(mvtVectorSourceWizardConfig);
6863
registered = true;
6964
}

x-pack/plugins/maps/public/kibana_services.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export function getEnabled(): boolean;
4747
export function getShowMapVisualizationTypes(): boolean;
4848
export function getShowMapsInspectorAdapter(): boolean;
4949
export function getPreserveDrawingBuffer(): boolean;
50-
export function getEnableVectorTiles(): boolean;
5150
export function getProxyElasticMapsServiceInMaps(): boolean;
5251
export function getIsGoldPlus(): boolean;
5352

x-pack/plugins/maps/public/kibana_services.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ export const getEnabled = () => getMapAppConfig().enabled;
152152
export const getShowMapVisualizationTypes = () => getMapAppConfig().showMapVisualizationTypes;
153153
export const getShowMapsInspectorAdapter = () => getMapAppConfig().showMapsInspectorAdapter;
154154
export const getPreserveDrawingBuffer = () => getMapAppConfig().preserveDrawingBuffer;
155-
export const getEnableVectorTiles = () => getMapAppConfig().enableVectorTiles;
156155

157156
// map.* kibana.yml settings from maps_legacy plugin that are shared between OSS map visualizations and maps app
158157
let kibanaCommonConfig;

x-pack/plugins/maps/server/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const config: PluginConfigDescriptor<MapsXPackConfig> = {
1515
enabled: true,
1616
showMapVisualizationTypes: true,
1717
showMapsInspectorAdapter: true,
18-
enableVectorTiles: true,
1918
preserveDrawingBuffer: true,
2019
},
2120
schema: configSchema,

0 commit comments

Comments
 (0)