England only
This commit is contained in:
parent
4d08f5d08d
commit
02712f41e8
8 changed files with 294 additions and 60 deletions
|
|
@ -7,6 +7,7 @@ from pathlib import Path
|
|||
from pipeline.transform.transform_poi import NAPTAN_EMOJIS, _CATEGORIES
|
||||
|
||||
GLYPHS_BASE = "https://protomaps.github.io/basemaps-assets/fonts"
|
||||
SPRITES_BASE = "https://protomaps.github.io/basemaps-assets/sprites/v4"
|
||||
TWEMOJI_BASE = "https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72"
|
||||
|
||||
# Font stacks used by @protomaps/basemaps with lang='en'
|
||||
|
|
@ -77,6 +78,15 @@ def main():
|
|||
url = f"{GLYPHS_BASE}/{font_encoded}/{name}"
|
||||
tasks.append((url, font_dir / name))
|
||||
|
||||
# Sprite sheets (light/dark, 1x and 2x)
|
||||
sprites_dir = out / "sprites"
|
||||
for theme in ("light", "dark"):
|
||||
for suffix in ("json", "png"):
|
||||
url = f"{SPRITES_BASE}/{theme}.{suffix}"
|
||||
tasks.append((url, sprites_dir / f"{theme}.{suffix}"))
|
||||
url_2x = f"{SPRITES_BASE}/{theme}@2x.{suffix}"
|
||||
tasks.append((url_2x, sprites_dir / f"{theme}@2x.{suffix}"))
|
||||
|
||||
# Twemoji PNGs
|
||||
twemoji_dir = out / "twemoji"
|
||||
for code in twemoji_codes:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue