From 7a2b126496f095d47d1fe16822c7252bdcd84980 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Tue, 29 Oct 2024 05:56:10 -0700 Subject: [PATCH 1/2] Update map.markdown --- source/_dashboards/map.markdown | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/source/_dashboards/map.markdown b/source/_dashboards/map.markdown index e955f788317..d30f3b0fb7d 100644 --- a/source/_dashboards/map.markdown +++ b/source/_dashboards/map.markdown @@ -58,11 +58,11 @@ type: type: string entities: required: true - description: List of entity IDs or `entity` objects (see below). Either this or the `geo_location_sources` configuration option is required. + description: List of entity IDs or `entity` objects (see [below](#options-for-entities)). Either this or the `geo_location_sources` configuration option is required. type: list geo_location_sources: required: true - description: List of geolocation sources. All current entities with that source will be displayed on the map. See [Geolocation](/integrations/geo_location/) platform for valid sources. Set to `all` to use all available sources. Either this or the `entities` configuration option is required. + description: List of geolocation sources or `source` objects (see [below](#options-for-geolocation-sources)). All current entities with that source will be displayed on the map. See [Geolocation](/integrations/geo_location/) platform for valid sources. Set to `all` to use all available sources. Either this or the `entities` configuration option is required. type: list auto_fit: required: false @@ -134,6 +134,22 @@ focus: type: boolean {% endconfiguration %} +## Options for geolocation sources: + +If you define geolocation sources as objects instead of strings (by adding `source:` before the ID), you can add more customization and configuration. + +{% configuration %} +source: + required: true + description: Name of a geolocation source, or `all`. + type: string +focus: + required: false + default: true + description: When set to `false`, this entities of this source will not be considered for determining the default zoom or fit of the map. + type: boolean +{% endconfiguration %} + ## Examples ```yaml @@ -150,6 +166,8 @@ entities: type: map geo_location_sources: - nsw_rural_fire_service_feed + - source: gdacs + focus: false entities: - zone.home ``` From a08e6448a3cf82f27f8429482a1d797715b14c23 Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Tue, 29 Oct 2024 15:40:15 +0200 Subject: [PATCH 2/2] typo --- source/_dashboards/map.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_dashboards/map.markdown b/source/_dashboards/map.markdown index d30f3b0fb7d..eadd522b5a6 100644 --- a/source/_dashboards/map.markdown +++ b/source/_dashboards/map.markdown @@ -146,7 +146,7 @@ source: focus: required: false default: true - description: When set to `false`, this entities of this source will not be considered for determining the default zoom or fit of the map. + description: When set to `false`, the entities of this source will not be considered for determining the default zoom or fit of the map. type: boolean {% endconfiguration %}