Infer center
and zoom
automatically if applicable
This commit is contained in:
parent
df9a9de068
commit
2b84d5bbed
1 changed files with 8 additions and 0 deletions
|
@ -22,6 +22,14 @@ in
|
||||||
{ location = "Switzerland"; }
|
{ location = "Switzerland"; }
|
||||||
{ location = "New York"; }
|
{ location = "New York"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
center = lib.mkIf
|
||||||
|
(lib.length config.map.markers >= 1)
|
||||||
|
null;
|
||||||
|
|
||||||
|
zoom = lib.mkIf
|
||||||
|
(lib.length config.map.markers >= 2)
|
||||||
|
null;
|
||||||
};
|
};
|
||||||
|
|
||||||
requestParams =
|
requestParams =
|
||||||
|
|
Loading…
Reference in a new issue