-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Coordinate Maps to NP (#64668)
- Loading branch information
Aaron Caldwell
authored
May 6, 2020
1 parent
402df7f
commit c00b36e
Showing
67 changed files
with
527 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import { schema, TypeOf } from '@kbn/config-schema'; | ||
import { configSchema as tilemapSchema } from '../tile_map/config'; | ||
|
||
// TODO: Pull this portion from region_map | ||
export const regionmapSchema = schema.object({ | ||
includeElasticMapsService: schema.boolean({ defaultValue: true }), | ||
layers: schema.arrayOf( | ||
schema.object({ | ||
url: schema.string(), | ||
format: schema.object({ | ||
type: schema.string({ defaultValue: 'geojson' }), | ||
}), | ||
meta: schema.object({ | ||
feature_collection_path: schema.string({ defaultValue: 'data' }), | ||
}), | ||
attribution: schema.string(), | ||
name: schema.string(), | ||
fields: schema.arrayOf( | ||
schema.object({ | ||
name: schema.string(), | ||
description: schema.string(), | ||
}) | ||
), | ||
}), | ||
{ defaultValue: [] } | ||
), | ||
}); | ||
|
||
export const configSchema = schema.object({ | ||
includeElasticMapsService: schema.boolean({ defaultValue: true }), | ||
proxyElasticMapsServiceInMaps: schema.boolean({ defaultValue: false }), | ||
tilemap: tilemapSchema, | ||
regionmap: regionmapSchema, | ||
manifestServiceUrl: schema.string({ defaultValue: '' }), | ||
emsFileApiUrl: schema.string({ defaultValue: 'https://vector.maps.elastic.co' }), | ||
emsTileApiUrl: schema.string({ defaultValue: 'https://tiles.maps.elastic.co' }), | ||
emsLandingPageUrl: schema.string({ defaultValue: 'https://maps.elastic.co/v7.7' }), | ||
emsFontLibraryUrl: schema.string({ | ||
defaultValue: 'https://tiles.maps.elastic.co/fonts/{fontstack}/{range}.pbf', | ||
}), | ||
emsTileLayerId: schema.object({ | ||
bright: schema.string({ defaultValue: 'road_map' }), | ||
desaturated: schema.string({ defaultValue: 'road_map_desaturated' }), | ||
dark: schema.string({ defaultValue: 'dark_map' }), | ||
}), | ||
}); | ||
|
||
export type ConfigSchema = TypeOf<typeof configSchema>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.