Skip to content

Commit

Permalink
pick the shapes according to region
Browse files Browse the repository at this point in the history
  • Loading branch information
remicousin committed Feb 7, 2025
1 parent 2efbe69 commit d6f06ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pepsico/projections/maproom.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,10 @@ def make_map(
adm["sql"],
adm["color"],
i+1,
len(GLOBAL_CONFIG["datasets"]["shapes_adm"])-i,
len(GLOBAL_CONFIG["datasets"][f"shapes_adm_{region}"])-i,
is_checked=adm["is_checked"]
)
for i, adm in enumerate(GLOBAL_CONFIG["datasets"]["shapes_adm"])
for i, adm in enumerate(GLOBAL_CONFIG["datasets"][f"shapes_adm_{region}"])
] + [
dlf.Overlay(
dlf.TileLayer(url=url_str, opacity=1),
Expand Down

0 comments on commit d6f06ed

Please sign in to comment.