Franck Nijhof c464056402
Making our website faster, cleaner and prettier (#9853)
* 🔥 Removes octopress.js

* 🔥 Removes use of root_url var

* 🔥 Removes Octopress generator reference from feed

* 🔥 Removes delicious support

* 🔥 Removes support for Pinboard

* 🔥 Removes support for Disqus

* 🔥 Removes support for Google Plus

* ↩️ Migrate custom after_footer to default template

* ↩️ Migrate custom footer to default template

* ↩️ Migrate custom header to default template

* 🔥 Removes unused template files

* 🚀 Places time to read directly in post template

* 🚀 Removes unneeded capture from archive_post.html template

* 🔥 🚀 Removes unused, but heaving sorting call in component page

* 🚀 Merged javascripts into a single file

* 🔥 Removes more uses of root_url

* 🚀 Removal of unneeded captures from head

* 🔥 🚀 Removal of expensive liquid HTML compressor

* 🔥 Removes unneeded templates

* 🚀 Replaces kramdown with GitHub's CommonMark 🚀

* 💄 Adds Prism code syntax highlighting

*  Adds support for redirect in Netlify

* ↩️ 🔥 Let Netlify handle all developer doc redirects

* ✏️ Fixes typo in redirects file: Netify -> Netlify

* 🔥 Removes unused .themes folder

* 🔥 Removes unused aside.html template

* 🔥 Removes Disqus config leftover

* 🔥 Removes rouge highlighter config

* 🔥 Removes Octopress 🎉

* 💄 Adjust code block font size and adds soft wraps

* 💄 Adds styling for inline code blocks

* 💄 Improve styling of note/warning/info boxes + div support

* 🔨 Rewrites all note/warning/info boxes
2019-07-15 22:17:54 +02:00

2.0 KiB

title, sidebar_label, description
title sidebar_label description
Map Card Map A card that allows you to display entities on a map

A card that allows you to display entities on a map.

Screenshot of the map card Screenshot of the map card.

{% configuration %} type: required: true description: map type: string entities: required: true description: List of entity IDs. 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 platform for valid sources. Set to all to use all available sources. Either this or the entities configuration option is required. type: list title: required: false description: The card title. type: string aspect_ratio: required: false description: "Forces the height of the image to be a ratio of the width. You may enter a value such as: 16x9, 16:9, 1.78." type: string default_zoom: required: false description: The default zoom level of the map. type: integer default: 14 (or whatever zoom level is required to fit all visible markers) dark_mode: required: false description: Enable a dark theme for the map. type: boolean default: false {% endconfiguration %}

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

The default_zoom value will be ignored if it is set higher than the current zoom level after fitting all visible entity markers in the map window. In other words, this can only be used to zoom the map out by default.

Examples

type: map
aspect_ratio: 16:9
default_zoom: 8
entities:
  - device_tracker.demo_paulus
  - zone.home
type: map
geo_location_sources:
  - nsw_rural_fire_service_feed
entities:
  - zone.home