diff --git a/marker.nix b/marker.nix index c9b64cb..1b5e344 100644 --- a/marker.nix +++ b/marker.nix @@ -22,6 +22,14 @@ in { location = "Switzerland"; } { location = "New York"; } ]; + + center = lib.mkIf + (lib.length config.map.markers >= 1) + null; + + zoom = lib.mkIf + (lib.length config.map.markers >= 2) + null; }; requestParams =