Skip to content

Commit c51a3db

Browse files
committed
reimplement owchoropleth with pyqtgraph
1 parent 8518f73 commit c51a3db

File tree

2 files changed

+733
-330
lines changed

2 files changed

+733
-330
lines changed

orangecontrib/geo/mapper.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ def get_bounding_rect(region_ids):
349349
return tuple(mins.tolist() + maxs.tolist())
350350

351351

352+
@wait_until_loaded
353+
def get_shape(region_ids):
354+
"""Return list of shapely polygons for regions defined by ids"""
355+
return [ID_REGIONS[_id][0] if _id in ID_REGIONS else None
356+
for _id in region_ids]
357+
358+
352359
if __name__ == '__main__':
353360
from pprint import pprint
354361

0 commit comments

Comments
 (0)