From c4eb384c8be15a76bf33f4493f5868c03bb0a65a Mon Sep 17 00:00:00 2001
From: Olivier Maury <Olivier.Maury@inrae.fr>
Date: Wed, 3 Jan 2024 10:28:34 +0100
Subject: [PATCH] =?UTF-8?q?Fond=20de=20carte=20par=20d=C3=A9faut=20:=20Pia?=
 =?UTF-8?q?no.=20fixes=20#41?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../java/fr/agrometinfo/www/client/ui/map/TileSuppliers.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-client/src/main/java/fr/agrometinfo/www/client/ui/map/TileSuppliers.java b/www-client/src/main/java/fr/agrometinfo/www/client/ui/map/TileSuppliers.java
index 0645d7a..7d1167b 100644
--- a/www-client/src/main/java/fr/agrometinfo/www/client/ui/map/TileSuppliers.java
+++ b/www-client/src/main/java/fr/agrometinfo/www/client/ui/map/TileSuppliers.java
@@ -309,6 +309,7 @@ public abstract class TileSuppliers {
         final Tile osmLayer = new Tile(osmLayerOptions);
         osmLayer.set(TITLE, "OpenStreetMap");
         osmLayer.set(TYPE, "base");
+        osmLayer.setVisible(false);
         osmLayer.set(ATTRIBUTIONS, options.getAttributions());
         return osmLayer;
     }
@@ -330,7 +331,6 @@ public abstract class TileSuppliers {
         final Tile tile = new Tile(xyzLayerOptions);
         tile.set(TITLE, "OpenStreetMap Piano");
         tile.set(TYPE, "base");
-        tile.setVisible(false);
         tile.set(ATTRIBUTIONS, options.getAttributions());
         return tile;
     }
-- 
GitLab