Skip to content

Commit

Permalink
[Maps] fix security solution network page (#122447)
Browse files Browse the repository at this point in the history
* [Maps] fix security solution network page

* fix path

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
nreese and kibanamachine authored Jan 10, 2022
1 parent 1ddb647 commit 0619acb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import { IndexPatternMapping } from '../types';
import { IndexPatternSavedObject } from '../../../../common/hooks/types';
import { LAYER_TYPE } from '../../../../../../maps/common';

export const mockIndexPatternIds: IndexPatternMapping[] = [
{ title: 'filebeat-*', id: '8c7323ac-97ad-4b53-ac0a-40f8f691a918' },
Expand Down Expand Up @@ -68,7 +69,7 @@ export const mockSourceLayer = {
maxZoom: 24,
alpha: 1,
visible: true,
type: 'VECTOR',
type: LAYER_TYPE.GEOJSON_VECTOR,
query: { query: '', language: 'kuery' },
joins: [],
};
Expand Down Expand Up @@ -125,7 +126,7 @@ export const mockDestinationLayer = {
maxZoom: 24,
alpha: 1,
visible: true,
type: 'VECTOR',
type: LAYER_TYPE.GEOJSON_VECTOR,
query: { query: '', language: 'kuery' },
};

Expand Down Expand Up @@ -180,7 +181,7 @@ export const mockClientLayer = {
maxZoom: 24,
alpha: 1,
visible: true,
type: 'VECTOR',
type: LAYER_TYPE.GEOJSON_VECTOR,
query: { query: '', language: 'kuery' },
joins: [],
};
Expand Down Expand Up @@ -242,7 +243,7 @@ export const mockServerLayer = {
maxZoom: 24,
alpha: 1,
visible: true,
type: 'VECTOR',
type: LAYER_TYPE.GEOJSON_VECTOR,
query: { query: '', language: 'kuery' },
};

Expand Down Expand Up @@ -311,7 +312,7 @@ export const mockLineLayer = {
maxZoom: 24,
alpha: 0.5,
visible: true,
type: 'VECTOR',
type: LAYER_TYPE.GEOJSON_VECTOR,
query: { query: '', language: 'kuery' },
};

Expand Down Expand Up @@ -375,7 +376,7 @@ export const mockClientServerLineLayer = {
maxZoom: 24,
alpha: 0.5,
visible: true,
type: 'VECTOR',
type: LAYER_TYPE.GEOJSON_VECTOR,
query: { query: '', language: 'kuery' },
};
const mockApmDataStreamClientServerLineLayer = {
Expand All @@ -393,7 +394,7 @@ export const mockLayerList = [
alpha: 1,
visible: true,
style: null,
type: 'VECTOR_TILE',
type: LAYER_TYPE.EMS_VECTOR_TILE,
},
mockLineLayer,
mockDestinationLayer,
Expand All @@ -410,7 +411,7 @@ export const mockLayerListDouble = [
alpha: 1,
visible: true,
style: null,
type: 'VECTOR_TILE',
type: LAYER_TYPE.EMS_VECTOR_TILE,
},
mockLineLayer,
mockDestinationLayer,
Expand All @@ -430,7 +431,7 @@ export const mockLayerListMixed = [
alpha: 1,
visible: true,
style: null,
type: 'VECTOR_TILE',
type: LAYER_TYPE.EMS_VECTOR_TILE,
},
mockLineLayer,
mockDestinationLayer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
LayerMappingDetails,
} from './types';
import * as i18n from './translations';
import { SCALING_TYPES, SOURCE_TYPES } from '../../../../../maps/common';
import { LAYER_TYPE, SCALING_TYPES, SOURCE_TYPES } from '../../../../../maps/common';
const euiVisColorPalette = euiPaletteColorBlind();

// Update field mappings to modify what fields will be returned to map tooltip
Expand Down Expand Up @@ -114,7 +114,7 @@ export const getLayerList = (indexPatternIds: IndexPatternMapping[]) => {
alpha: 1,
visible: true,
style: null,
type: 'VECTOR_TILE',
type: LAYER_TYPE.EMS_VECTOR_TILE,
},
...indexPatternIds.reduce((acc: object[], { title, id }) => {
return [
Expand Down Expand Up @@ -184,7 +184,7 @@ export const getSourceLayer = (
maxZoom: 24,
alpha: 1,
visible: true,
type: 'VECTOR',
type: LAYER_TYPE.GEOJSON_VECTOR,
query: { query: '', language: 'kuery' },
joins: [],
});
Expand Down Expand Up @@ -248,7 +248,7 @@ export const getDestinationLayer = (
maxZoom: 24,
alpha: 1,
visible: true,
type: 'VECTOR',
type: LAYER_TYPE.GEOJSON_VECTOR,
query: { query: '', language: 'kuery' },
});

Expand Down Expand Up @@ -332,6 +332,6 @@ export const getLineLayer = (
maxZoom: 24,
alpha: 0.5,
visible: true,
type: 'VECTOR',
type: LAYER_TYPE.GEOJSON_VECTOR,
query: { query: '', language: 'kuery' },
});

0 comments on commit 0619acb

Please sign in to comment.