Skip to content

Commit f25c6de

Browse files
authored
Made the map more narrow (#31)
1 parent f10aa58 commit f25c6de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/strava_collections/collection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def plot_elevation(
9898
print(f"Saved elevation plot to: {filepath}")
9999
return fig
100100

101-
def plot_map(self, zoom=12, filepath=None, config={}, height=600):
101+
def plot_map(self, filepath=None, config={}, height=300):
102102
"""Plot all activities together as lon/lat lines."""
103103
fig = go.Figure()
104104

@@ -146,7 +146,7 @@ def plot_map(self, zoom=12, filepath=None, config={}, height=600):
146146
)
147147
color_index += 1
148148

149-
zoom, center = zoom_center(maxlon, minlon, maxlat, minlat, width_to_height=3.0)
149+
zoom, center = zoom_center(maxlon, minlon, maxlat, minlat, width_to_height=5.0)
150150
fig.update_layout(
151151
mapbox_style="open-street-map",
152152
mapbox_zoom=zoom,
@@ -175,7 +175,7 @@ def generate_markdown(
175175
f.write(f"# {self.name}\n")
176176
f.write(
177177
f"""
178-
<div style="position: relative; width: 100%; height: 650px;">
178+
<div style="position: relative; width: 100%; height: 350px;">
179179
<iframe src="_static/{mapfig_name}" style="width:100%; height:100%; border:none;"></iframe>
180180
</div>
181181
\n\n"""

0 commit comments

Comments
 (0)