Skip to content

Commit 0fcf10c

Browse files
committed
Fix current view assignment for map
1 parent 78a00db commit 0fcf10c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydelmod/dataui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def update_map_features(
257257
current_view.index.get_indexer(current_selected.index)
258258
)
259259
else:
260-
current_view = self.display_table.current_view
260+
current_view = dfs.loc[self.display_table.current_view.index]
261261
current_selected = self.display_table.selected_dataframe
262262
current_selection = list(
263263
current_view.index.get_indexer(current_selected.index)
@@ -274,7 +274,7 @@ def update_map_features(
274274
)
275275
self.map_color_category = color_by
276276
self.show_map_colors = show_color_by
277-
self.build_map_of_features(current_view, self.crs)
277+
self.map_features = self.build_map_of_features(current_view, self.crs)
278278
if isinstance(self.map_features, gv.Points):
279279
if show_marker_by:
280280
self.map_features = self.map_features.opts(

0 commit comments

Comments
 (0)