-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.ts
More file actions
20 lines (16 loc) · 895 Bytes
/
config.ts
File metadata and controls
20 lines (16 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import { schema, TypeOf } from '@kbn/config-schema';
export const mapConfigSchema = schema.object({
url: schema.string({ defaultValue: '' }),
defaultGeospatialField: schema.string({ defaultValue: 'geo_center' }),
defaultEllipseMajor: schema.string({ defaultValue: 'geo_semimajor_nm' }),
defaultEllipseMinor: schema.string({ defaultValue: 'geo_semiminor_nm' }),
defaultEllipseTilt: schema.string({ defaultValue: 'geo_tilt_deg' }),
});
export type DataShaderConfig = TypeOf<typeof mapConfigSchema>;