Skip to main content
This component can be extended to add extra properties

Properties

  • location (object) (required)
    • provider (string) - enum: google, baidu (required) - Provider of the map. Ex., Google, Baidu, etc.
    • latitude (object) (required) - Latitude of the location.
    • longitude (object) (required) - Longitude of the location.
    • placeId (string) (required) - Used to locate the particular place on the map
    • placeName (string) - minLength: 2 - Place name displayed to the user in case map title is mis-guiding.
    • zoom (number) - Zoom level of the map to set when map is rendered

Used in Categories

This component is used in the following categories:

Schema

{
  "$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"
        }
      }
    }
  }
}