File tree 1 file changed +12
-0
lines changed 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -40,17 +40,29 @@ aspect_ratio:
40
40
description: "The map's height: width ratio."
41
41
type: string
42
42
default: "100%"
43
+ default_zoom:
44
+ required: false
45
+ description: The default zoom level of the map.
46
+ type: integer
47
+ default: 14 (or whatever zoom level is required to fit all visible markers)
43
48
{% endconfiguration %}
44
49
45
50
<p class =' note ' >
46
51
Only entities that have latitude and longitude attributes will be displayed on the map.
47
52
</p >
48
53
54
+ <p class =" note " >
55
+ The ` default_zoom ` value will be ignored if it is set higher than the current zoom level
56
+ after fitting all visible entity markers in the map window. In other words, this can only
57
+ be used to zoom the map _ out_ by default.
58
+ </p >
59
+
49
60
## {% linkable_title Examples %}
50
61
51
62
``` yaml
52
63
- type : map
53
64
aspect_ratio : 100%
65
+ default_zoom : 8
54
66
entities :
55
67
- device_tracker.demo_paulus
56
68
- zone.home
You can’t perform that action at this time.
0 commit comments