Amélioration du rendu de la carte org

This commit is contained in:
Colin Maudry
2026-04-28 13:34:33 +02:00
parent 1a5f049b1a
commit 25746b4869
+6 -3
View File
@@ -227,12 +227,13 @@ def point_on_map(lat, lon, departement_code=None):
lat=[lat], lat=[lat],
lon=[lon], lon=[lon],
height=300, height=300,
width=400, # width=400,
color=[1], color=[1],
size=[15], # Point plus grand comme demandé
zoom=settings["zoom"], zoom=settings["zoom"],
) )
fig.update_traces(marker=dict(size=10))
# Configuration de la carte (interactive - zoomable) # Configuration de la carte (interactive - zoomable)
fig.update_layout( fig.update_layout(
map_style="light", # Fond de carte clair map_style="light", # Fond de carte clair
@@ -242,7 +243,9 @@ def point_on_map(lat, lon, departement_code=None):
coloraxis_showscale=False, 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): class DataTable(dash_table.DataTable):