Skip to content

Commit c6f2b3c

Browse files
authored
Merge pull request #101 from edgi-govdata-archiving/neighborhoods
bivariate_map() and show_regions() return map instead of displaying; …
2 parents dd683ed + 9bd3449 commit c6f2b3c

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

ECHO_modules/utilities.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -852,8 +852,8 @@ def bivariate_map(regions, points, bounds=None, no_text=False, region_fields=Non
852852
bounds = m.get_bounds()
853853
m.fit_bounds(bounds, padding=0)
854854

855-
# display the map!
856-
display(m)
855+
# return the map!
856+
return m
857857

858858
def show_regions(regions, states, region_type, spatial_tables):
859859
'''
@@ -881,8 +881,8 @@ def show_regions(regions, states, region_type, spatial_tables):
881881
bounds = m.get_bounds()
882882
m.fit_bounds(bounds, padding=0)
883883

884-
# display the map!
885-
display(m)
884+
# return the map!
885+
return m
886886

887887
def dataset_filename(base, type, state, regions):
888888
'''
@@ -1186,5 +1186,4 @@ def polygon_map(center=(39.8282,-98.5796), zoom=5):
11861186
}
11871187
draw_control.on_draw(handle_draw)
11881188
m.add_control(draw_control)
1189-
display(m)
1190-
return shapes
1189+
return (m, shapes)

0 commit comments

Comments
 (0)