10

Prompting only

A world of little wonders Prompt-made · Wildlife edition

#30DayMapChallenge prompt: For this map, make AI work for its money and produce something from start to finish in a chat window or on the command line.

⤓ Countries, creatures & Red List categories (CSV)⤓ Photograph credits & licences⤓ Conservation sources & method

Why this map

A living wildlife atlas: a condor glides over Ecuador, a llama wanders in Peru, a hedgehog explores England, and a red squirrel scampers in Scotland. The only mythical residents are the Chinese, Welsh and Bhutanese dragons, each with its own illustration.

The catalogue includes 203 distinct real animal taxa, three dragon motifs, and extra Antarctic penguin colonies. Every one of the 193 UN member states and two observer states has a resident; regional and polar extras are counted separately. Choices favour animals native to or established in the country. A few are explicitly domesticated, restored or introduced populations, described in their labels. These are illustrative country associations, not official national-animal designations or species-range maps.

Zoom in and the drawings grow. Walkers, hoppers, flyers and swimmers follow short moving paths. Land routes stay inside the country's generalised footprint; marine residents swim or fly in adjacent coastal water, rather than across the land. These are animated illustrations, not animal tracking or maritime boundary data. Hovering holds a resident still; clicking or tapping opens a field card with a real photograph, its credit and licence, or an original illustration for a dragon.

The Red List indicator shows the global species-level IUCN category, where verified through GBIF. Vulnerable, Endangered and Critically Endangered are progressively highlighted; Not Evaluated, Data Deficient and unverified results are not treated as low risk. A country's population or a named subspecies can have a different risk level from the global species. The card links to the source. GBIF's IUCN snapshot may lag newer assessments.

Drag to wander, scroll or pinch to zoom, and pause the movement whenever you like. Reduced-motion preferences are respected. The map itself works without external map services; photo cards load credited images from Wikimedia or iNaturalist when opened, so photographs need an internet connection.

Day 10: Prompting only began with one prompt and was refined in a second round of prompts to add distinct wildlife, livelier animation, conservation status and photographs. The complete country/creature catalogue, conservation methods and photo credits are downloadable below.

Data sources

Natural Earth · Admin 0 countries, 1:50m ↗

From
Natural Earth; GeoJSON distribution by Nathaniel Vaughn Kelso
What
Generalised world country polygons. Natural Earth's boundary conventions are retained; tiny states and islands can be too small to draw at this scale. Creature points are an independently curated layer.
Time
Natural Earth 5.1.1 distribution; downloaded 13 November 2026
Resolution
1:50,000,000 generalised boundaries; Equal Earth projection (EPSG:8857). Not for navigation or precise boundary measurement.
Licence
Public domain (Natural Earth). Attribution included on the map.

Country coverage · United Nations ↗

From
United Nations
What
Coverage reference: 193 member states, plus the Holy See and State of Palestine (the two non-member observer states). Regional and polar extras are counted separately.
Time
Country coverage checked 13 November 2026
Resolution
Country-level reference, not point coordinates. Additional observer reference: https://www.un.org/en/about-us/non-member-states
Licence
Factual country names used as reference; no UN logos or illustrations reproduced.

Creature catalogue & original pixel illustrations ↗

From
AI-created for Edita Chavez's Day 10 map, from the user's brief
What
One editorial creature assignment for every country, plus explicitly scoped extras. Real local wildlife, plus three retained dragon motifs. Labels distinguish fictional dragons and identify restored, domestic or introduced populations where relevant. Assignments are illustrative choices, not a national-animal register.
Time
Created 13 November 2026
Resolution
Approximate country or regional anchors selected for illustration. Animals are not tracked individuals, and points do not describe species ranges.
Licence
Original SVG pixel art and editorial catalogue generated for this project; no third-party character art or emoji images used.

Why is there a dragon on the Welsh flag? ↗

From
Wales.com
What
Cultural reference for the red Welsh dragon; the creature is a new storybook pixel illustration.
Time
Reference checked 13 November 2026
Resolution
National folklore/heraldic motif, not a wildlife observation.
Licence
Factual reference only; no source artwork or text reproduced.

Eleven Dragons · Smithsonian National Museum of Asian Art ↗

From
Smithsonian National Museum of Asian Art
What
Reference for the Chinese dragon tradition. The small green map sprite is an original simplified fantasy interpretation.
Time
Reference checked 13 November 2026
Resolution
Cultural inspiration; not an official national animal designation.
Licence
Factual reference only; no museum artwork or text reproduced.

IUCN Red List categories · via GBIF ↗

From
IUCN; accessed through the Global Biodiversity Information Facility (GBIF)
What
Exact scientific-name matches to global species/subspecies categories where verified. Unknown or conflicting matches withheld. Categories are not country-specific population assessments. API evidence retained locally; method downloadable on this page.
Time
Retrieved 13 November 2026; GBIF dataset metadata cites IUCN Version 2026-1, downloaded 28 July 2026. This cache may lag the latest IUCN assessment.
Resolution
Global taxon-level extinction-risk category, not a numerical probability, local population estimate or assessment year.
Licence
CC BY 4.0 as recorded in GBIF dataset metadata. IUCN (2026), The IUCN Red List of Threatened Species, Version 2026-1. DOI: 10.15468/0qnb58.

Wildlife photographs & individual credits ↗

From
Individual photographers via Wikimedia Commons; three iNaturalist photographs accessed through GBIF
What
One sourced photograph for each of 203 real animal taxa. Individual creator, licence and source links appear in the photo card and downloadable credit list. Photo metadata was checked; not every photograph was visually reviewed.
Time
Photo metadata retrieved 13 November 2026; original capture dates vary.
Resolution
Species portraits, not evidence of an observation at the illustrated map point. Photographs are loaded remotely only when their card opens.
Licence
Individual public-domain / CC BY / CC BY-SA licences, identified with each image. Original dragon portraits and pixel drawings were generated for this project.

UK country boundaries · ONS December 2024 BGC ↗

From
Office for National Statistics (ONS)
What
England, Wales, Scotland and Northern Ireland polygons constrain regional resident movement. Reused from this project's Day 3 boundary cache and further generalised for the illustrative atlas.
Time
Boundaries December 2024; original cache downloaded 3 November 2026; reused 13 November 2026.
Resolution
Original generalised 20m coastline-clipped boundaries; further simplified for these short animation paths.
Licence
Source: Office for National Statistics licensed under the Open Government Licence v.3.0. Contains OS data © Crown copyright and database right 2025.

How it was made

Pythonpyprojshapelywildlife_artroamingportraits
See the code (map.py)
"""Day 10 · Prompting only — A world of little wonders.

Run: python days/10-prompting-only/map.py
Builds a standalone, offline-capable map.html from country geometry, the
editorial creature catalogue and original SVG pixel art. No paid APIs or keys.
The existing build.py embeds it in the Day 10 page and copies the CSV download.
"""
from __future__ import annotations

import csv
import html
import json
import sys
from pathlib import Path
from urllib.request import urlretrieve

from pyproj import Transformer
from shapely.geometry import shape

HERE = Path(__file__).resolve().parent
sys.path.insert(0, str(HERE))
from wildlife_art import sprite_defs, sprite_ids
from roaming import RouteBuilder
from portraits import portrait_defs

SPRITE_IDS = sprite_ids(json.loads((HERE / "creatures.json").read_text()))

GEOMETRY_URL = 'https://raw.githubusercontent.com/nvkelso/natural-earth-vector/master/geojson/ne_50m_admin_0_countries.geojson'
PROJECTION = Transformer.from_crs('EPSG:4326', 'EPSG:8857', always_xy=True)
XMAX, YMAX = 17243959.06221695, 8392927.59846645


def project(lon: float, lat: float) -> tuple[float, float]:
    """Equal Earth projection, fitted to the atlas's 1600 × 900 drawing space."""
    x, y = PROJECTION.transform(lon, lat)
    return (800 + x / XMAX * 748, 450 - y / YMAX * 412)


def load_creatures() -> list[dict]:
    records = json.loads((HERE / 'creatures.json').read_text())
    ids = set()
    for record in records:
        if record['id'] in ids or record['sprite'] not in SPRITE_IDS:
            raise ValueError(f'Invalid creature: {record}')
        ids.add(record['id'])
    conservation_path = HERE / 'conservation.json'
    conservation = json.loads(conservation_path.read_text()) if conservation_path.exists() else {}
    photos_path=HERE / 'photos.json'
    photos=json.loads(photos_path.read_text()) if photos_path.exists() else {}
    for record in records:
        record['photo']=photos.get(record['sprite'])
        record['conservation'] = conservation.get(record['sprite'], {
            'category': None, 'label': 'Not applicable' if record['kind'] == 'myth' else 'Not verified',
            'verified': False})
    if sum(r['scope'] == 'country' for r in records) != 195:
        raise ValueError('The country catalogue must include all 195 UN members and observers.')
    return records


def line_path(points, close=False):
    coords = [project(*p[:2]) for p in points]
    return 'M' + 'L'.join(f'{x:.2f},{y:.2f}' for x, y in coords) + ('Z' if close else '')


def country_paths():
    cache = HERE / 'data' / 'countries.geojson'
    if not cache.exists():
        cache.parent.mkdir(exist_ok=True)
        print('Downloading public-domain Natural Earth country boundaries…')
        urlretrieve(GEOMETRY_URL, cache)
    data = json.loads(cache.read_text())
    fills = {'Africa':'#e8c69a','Asia':'#d7dba5','Europe':'#dcc9ac',
             'North America':'#c9d4a3','South America':'#c5d1aa',
             'Oceania':'#e5c392','Antarctica':'#f6f3df','Seven seas (open ocean)':'#d7dac0'}
    result = []
    areas = {}
    for feature in data['features']:
        p = feature['properties']
        geom = shape(feature['geometry']).simplify(.045, preserve_topology=True)
        polys = list(geom.geoms) if geom.geom_type == 'MultiPolygon' else [geom]
        path = ''.join(line_path(poly.exterior.coords, True) + ''.join(line_path(r.coords, True) for r in poly.interiors) for poly in polys)
        iso = p.get('ADM0_A3', p.get('SOV_A3', ''))
        areas[iso] = geom.area
        name = html.escape(p.get('ADMIN', ''), quote=True)
        result.append(f'<path class="country" data-country="{html.escape(iso)}" aria-label="{name}" d="{path}" fill="{fills.get(p.get("CONTINENT"), "#d9d5b3")}"/>')
    return ''.join(result), areas


def build_map(output: Path = HERE / 'map.html'):
    records = load_creatures()
    land, areas = country_paths()
    routes = RouteBuilder(json.loads((HERE / 'data' / 'countries.geojson').read_text()))
    outline = line_path([(180, n) for n in range(90, -91, -2)] + [(-180, n) for n in range(-90, 91, 2)], True)
    graticules = ''.join(f'<path d="{line_path([(lon,lat) for lon in range(-180,181,3)])}"/>' for lat in range(-60, 61, 30))
    graticules += ''.join(f'<path d="{line_path([(lon,lat) for lat in range(-90,91,3)])}"/>' for lon in range(-150, 180, 30))
    special = ['CHN','AUS','BRA','CAN','USA','RUS','IND','GBR','KEN','ZAF','ATA','ARC','GRL','JPN','BTN','IRL','NZL','IDN','PER','MEX','EGY','WLS','SCT']
    markers = []
    marker_data = []
    for i, r in enumerate(records):
        x, y = project(r['lon'], r['lat'])
        priority = 10000 - special.index(r['id']) * 20 if r['id'] in special else areas.get(r['id'], 0)
        route = routes.route_for(r, x, y)
        x, y = route['points'][0]
        rr = {**r, 'x':x, 'y':y, 'priority':priority, 'route':route['points'], 'roamZone':route['zone']}
        marker_data.append(rr)
        label = html.escape(f'{r["name"]} · {r["creature"]}', quote=True)
        motion = r.get('motion', 'walk')
        star_visibility = '' if r["kind"] == "myth" else 'display="none"'
        markers.append(f'<g class="resident" data-creature="{r["id"]}" tabindex="0" role="img" aria-label="{label}" transform="translate({x:.3f} {y:.3f})" style="--delay:-{i%23*.37:.2f}s;--duration:{2.4+i%7*.21:.2f}s"><title>{label}</title><ellipse class="shadow" cx="0" cy="12" rx="11" ry="2.7"/><g class="trail trail-{motion}" aria-hidden="true"><path d="M-16 10q-5 4-10 0m12 5q-5 4-10 0"/><ellipse cx="-13" cy="13" rx="2" ry="1"/><ellipse cx="-19" cy="10" rx="2" ry="1"/></g><g class="critter {motion}"><g class="facing"><use href="#sprite-{r["sprite"]}" x="-20" y="-24" width="40" height="40"/></g></g><circle class="myth-star" cx="15" cy="-17" r="2" {star_visibility}/><rect class="hit" x="-20" y="-25" width="40" height="43" rx="10"/></g>')
    countries = sum(r['scope'] == 'country' for r in records)
    text = (HERE / 'atlas.html').read_text().replace('@@SCRIPT@@', (HERE / 'atlas.js').read_text())
    for token, value in {'SPRITES':sprite_defs(records)+portrait_defs(), 'LAND':land, 'OUTLINE':outline,
                         'GRATICULES':graticules, 'MARKERS':''.join(markers),
                         'CATALOGUE':json.dumps(marker_data, ensure_ascii=False).replace('</','<\\/'),
                         'COUNTRY_COUNT':str(countries), 'CREATURE_COUNT':str(len(records))}.items():
        text = text.replace('@@' + token + '@@', value)
    output.write_text(text, encoding='utf-8')
    if output.resolve() == (HERE / 'map.html').resolve():
        exported = []
        for r in records:
            status = r['conservation']
            row = {k:v for k,v in r.items() if k not in {'conservation','photo'}}
            row.update(iucnCategory=status.get('category') or '', iucnLabel=status.get('label','Not verified'),
                       iucnSource=status.get('sourceURL',''), iucnProvider=status.get('provider',''),
                       iucnCheckedDate=status.get('checkedDate',''))
            exported.append(row)
        fields = list(dict.fromkeys(k for row in exported for k in row))
        with (HERE / 'creatures.csv').open('w',newline='',encoding='utf-8') as f:
            writer=csv.DictWriter(f,fieldnames=fields,lineterminator='\n');writer.writeheader();writer.writerows(exported)
    return output


if __name__ == '__main__':
    print('Saved', build_map())

Doing the challenge too? Use this template for your own →