Skip to content

Commit 0a148e0

Browse files
committed
Set zoom of map to 1 after team discussion. Added note about map centering that some data may not be displayed without adjusting zoom.
1 parent 85a9b27 commit 0a148e0

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

components/divs.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ def get_map_div():
128128
),
129129

130130
html.Div([
131+
html.H4('''
132+
Note: Manual zooming may be required to view all points; the map focuses on the centroid of the data.
133+
''',
134+
id = 'x-variable', #label to avoid nonexistent callback variable
135+
style = {'color': 'MidnightBlue', 'margin-left': 20, 'margin-right': 20}
136+
)
131137
],
132138
id = 'sort-by', #label sort-by box to avoid non-existent label and generate box so button doesn't move between views
133139
style = HALF_DIV_STYLE

components/graphs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ def make_map(df, color_by):
6161
size = "Samples_at_locality",
6262
color = color_by,
6363
color_discrete_sequence = px.colors.qualitative.Bold,
64-
title = "Distribution of Samples")
64+
title = "Distribution of Samples",
65+
zoom = 1,
66+
mapbox_style = "white-bg")
6567

6668
fig.update_traces(hovertemplate =
6769
"Latitude: %{lat}<br>"+
@@ -79,7 +81,6 @@ def make_map(df, color_by):
7981
't': 35,
8082
'b': 20
8183
},
82-
mapbox_style = "white-bg",
8384
mapbox_layers = [{
8485
"below": "traces",
8586
"sourcetype": "raster",

0 commit comments

Comments
 (0)