From 25746b4869a0633b8cb3dc85dd52033464d97d1d Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Tue, 28 Apr 2026 13:34:33 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20du=20rendu=20de=20la=20cart?= =?UTF-8?q?e=20org?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/figures.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/figures.py b/src/figures.py index f92e07f..4670723 100644 --- a/src/figures.py +++ b/src/figures.py @@ -227,12 +227,13 @@ def point_on_map(lat, lon, departement_code=None): lat=[lat], lon=[lon], height=300, - width=400, + # width=400, color=[1], - size=[15], # Point plus grand comme demandé zoom=settings["zoom"], ) + fig.update_traces(marker=dict(size=10)) + # Configuration de la carte (interactive - zoomable) fig.update_layout( map_style="light", # Fond de carte clair @@ -242,7 +243,9 @@ def point_on_map(lat, lon, departement_code=None): coloraxis_showscale=False, ) - return html.Div(dcc.Graph(figure=fig), style={"width": "400px"}) + return html.Div( + dcc.Graph(figure=fig, config={"displayModeBar": False}), + ) class DataTable(dash_table.DataTable):