diff --git a/source/_lovelace/map.markdown b/source/_lovelace/map.markdown new file mode 100644 index 00000000000..3b11c0fe8fe --- /dev/null +++ b/source/_lovelace/map.markdown @@ -0,0 +1,52 @@ +--- +layout: page +title: "Map Card" +sidebar_label: Map +description: "A card that allows you to display entities on a map" +date: 2018-07-08 10:28 +00:00 +sidebar: true +comments: false +sharing: true +footer: true +--- + +### Map + +A card that allows you to display entities on a map + +

+Screenshot of the map card +Screenshot of the map card. +

+ +**Options** + +| Name | Type | Default | Description +| ---- | ---- | ------- | ----------- +| type | string | **Required** | `map` +| entities | list | **Required** | A list of entities to display on the map. Can be entity_ids or entity objects (see structure below). +| title | string | Optional | Card title +| aspect_ratio | string | `"100%"` | Map height:width ratio + +`entity` object + +| Name | Type | Default | Description +| ---- | ---- | ------- | ----------- +| entity | string | **Required** | An entity_id. Example: 'device_tracker.demo_paulus'. + +

+ Only entities that have latitude and longitude attributes will be displayed on the map +

+ + +**Examples** + +Basic map example: + +```yaml +- type: map + aspect_ratio: 100% + entities: + - entity: device_tracker.demo_paulus + - group.home +``` diff --git a/source/images/lovelace/lovelace_map_card.png b/source/images/lovelace/lovelace_map_card.png new file mode 100644 index 00000000000..16f272b1da4 Binary files /dev/null and b/source/images/lovelace/lovelace_map_card.png differ