Closed hannahkates closed 5 years ago
This error is happen when transitioning between two maps that have identical id
for the county layers. In this case a layer with id empty-polygons-county
already exists on the map, and is never replaced with the new layer after the transition.
Since these layer ids are repeated throughout the app, the correct fix may be to append the map's slug
when parsing the config yaml, so the layer name becomes `total-nycworkerres-empty-polygons-county.
Fixed in https://github.com/NYCPlanning/labs-regional-viz/commit/b5f49f6196109418dede73e4aad457541dad9d1a. The new unique layer IDs are hardcoded in the yaml files.
On the NYC resident commuting maps (2nd and 6th maps), Putnam and Westchester counties should be joined together into one polygon on the map and one row in the popup table. On the NYC workers commuting maps (1st, 3rd, 4th, 5th), Putnam and Westchester counties should be separate, not joined together.
It seems like the polygons being used on the map are sticky, so the maps will show the incorrect set of polygons when you're navigating from one map to another.
Steps to reproduce: