{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {},
"title": "Base map component",
"description": "This component can be extended to add extra properties",
"type": "object",
"required": [
"location"
],
"properties": {
"location": {
"type": "object",
"required": [
"provider",
"latitude",
"longitude",
"placeId"
],
"additionalProperties": false,
"properties": {
"provider": {
"type": "string",
"enum": [
"google",
"baidu"
],
"title": "Provider of the map",
"description": "Provider of the map. Ex., Google, Baidu, etc."
},
"latitude": {
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
],
"title": "Latitude",
"description": "Latitude of the location."
},
"longitude": {
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
],
"title": "Longitude",
"description": "Longitude of the location."
},
"placeId": {
"type": "string",
"title": "Place id",
"description": "Used to locate the particular place on the map"
},
"placeName": {
"type": "string",
"title": "Place name",
"minLength": 2,
"description": "Place name displayed to the user in case map title is mis-guiding."
},
"zoom": {
"type": "number",
"title": "Zoom level of the map",
"description": "Zoom level of the map to set when map is rendered"
}
}
}
}
}