Skip to content

Commit

Permalink
Update the edit_gps_trace function
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Nov 11, 2024
1 parent 23ba165 commit fe1232d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions leafmap/maplibregl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3953,6 +3953,12 @@ def feature_change(change):
categories = m.gdf["annotation"].value_counts()
keys = list(colormap.keys())[:-1]
for index, cat in enumerate(keys):

fig.axes = [
bq.Axis(scale=x_sc, label="Time"),
bq.Axis(scale=y_sc, orientation="vertical", label=feature.value),
]

mask = m.gdf["annotation"] == cat
scatters[index].x = m.gps_trace.index[mask]
scatters[index].y = m.gps_trace[feature.value][mask]
Expand Down

0 comments on commit fe1232d

Please sign in to comment.