This commit is contained in:
Jerad Meisner 2018-07-08 12:35:04 -07:00
parent 6235a3508a
commit 81d01054ce

View File

@ -17,27 +17,43 @@ A card that allows you to display entities on a map
Screenshot of the map card. Screenshot of the map card.
</p> </p>
**Options** ### {% linkable_title Options %}
| Name | Type | Default | Description {% configuration %}
| ---- | ---- | ------- | ----------- type:
| type | string | **Required** | `map` required: true
| entities | list | **Required** | A list of entities to display on the map. Can be entity_ids or entity objects (see structure below). description: "`map`"
| title | string | Optional | Card title type: string
| aspect_ratio | string | `"100%"` | Map height:width ratio entities:
required: true
description: "Entity id's or an `entity` object (see structure below)."
type: list
title:
required: false
description: Card title
type: string
aspect_ratio:
required: false
description: "Map height:width ratio"
type: string
default: 100%
{% endconfiguration %}
`entity` object `entity` object:
| Name | Type | Default | Description {% configuration %}
| ---- | ---- | ------- | ----------- entity:
| entity | string | **Required** | An entity_id. Example: 'device_tracker.demo_paulus'. required: true
description: "An entity_id. Example: 'device_tracker.demo_paulus'."
type: string
{% endconfiguration %}
<p class='note'> <p class='note'>
Only entities that have latitude and longitude attributes will be displayed on the map Only entities that have latitude and longitude attributes will be displayed on the map
</p> </p>
**Examples** ### {% linkable_title Examples %}
Basic map example: Basic map example: