From b9f8612f16235e0b22eecec6724734335e16fe82 Mon Sep 17 00:00:00 2001 From: ouidade Date: Tue, 8 Oct 2024 12:49:39 +0200 Subject: [PATCH] map plus grande --- .../q2d_mod/assets/css/carte-interactive-qdd.scss | 4 +++- .../custom/q2d_mod/src/Plugin/Block/SitesMap.php | 4 ++-- .../custom/q2d_mod/templates/svg-mapsites.html.twig | 10 ++++++---- .../quartiers_de_demain/dist/assets/css/bundle.css | 4 +++- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/web/modules/custom/q2d_mod/assets/css/carte-interactive-qdd.scss b/web/modules/custom/q2d_mod/assets/css/carte-interactive-qdd.scss index 22f94a0..36d1f40 100644 --- a/web/modules/custom/q2d_mod/assets/css/carte-interactive-qdd.scss +++ b/web/modules/custom/q2d_mod/assets/css/carte-interactive-qdd.scss @@ -6,6 +6,8 @@ background-color: #cecfcc; text-align: center; position: relative; + height: 600px; + width: auto; } /* #sites-map-container .circle { fill: black; @@ -28,7 +30,7 @@ display: none; position: absolute; left: 50%; - top: 50%; + top: -20%; transform: translate(-50%, -50%); z-index: 1000; text-align: left; diff --git a/web/modules/custom/q2d_mod/src/Plugin/Block/SitesMap.php b/web/modules/custom/q2d_mod/src/Plugin/Block/SitesMap.php index 9f8fc66..20ec4aa 100644 --- a/web/modules/custom/q2d_mod/src/Plugin/Block/SitesMap.php +++ b/web/modules/custom/q2d_mod/src/Plugin/Block/SitesMap.php @@ -28,8 +28,8 @@ class SitesMap extends BlockBase { $sites_paths = ""; - $vp_w = 400; - $vp_h = 400; + $vp_w = 600; + $vp_h = 600; // Coordonnées géographiques des coins de la carte (France) $latTop = 52.0; // Nord-Ouest (coin supérieur gauche) diff --git a/web/modules/custom/q2d_mod/templates/svg-mapsites.html.twig b/web/modules/custom/q2d_mod/templates/svg-mapsites.html.twig index 9985a2c..1b95fce 100644 --- a/web/modules/custom/q2d_mod/templates/svg-mapsites.html.twig +++ b/web/modules/custom/q2d_mod/templates/svg-mapsites.html.twig @@ -5,7 +5,7 @@