Take a 5-minute test drive — real clips, AI reports, no account needed. Try Scout Elite Free →

Handoff: Add Minnesota Hockey Districts to the Youth-Post Map

For: the agent picking this up (Sonnet). Task: Add all Minnesota Hockey districts to the map in the Minnesota youth hockey post, with informative popups, a Leaflet layers toggle, and a new in-body districts table. The map currently only shows AAA clubs and the prep program — districts (the actual foundation of youth hockey here) are missing.

Target file: _posts/2026-06-08-minnesota-youth-hockey-explained-parent-guide.md Specifically: the mn-youth-map <script> block, plus a new table in the body and an update to the “12 districts” text if the verified count differs.

Do not remove or alter the existing AAA (orange #e8590c) or prep (purple #7048e8) markers. Districts are an additive third layer.


1. Get the data right first (do not trust a remembered list)

The district structure is administrative and is not on MyHockeyRankings. MHR is team/association-level (good for individual AAA/association team ratings and records) — it does not define districts or which associations belong to them. Sources, in priority order:

  1. minnesotahockey.org/associations — the canonical list of districts and their member associations. Source of truth for the district list itself. (Note: this page sometimes returns 403 to automated fetches — if so, use web search against the domain, or fetch individual district sites below.)
  2. Each district’s own website — e.g. minnesotahockeydistrict8.com — for region description, member-association roster, and often a coverage map.
  3. MHR — optional only, if you want one team-level stat per district (e.g., highest-rated association team in that region). Not required for the core task.

⚠️ Verify before coding


2. Per-district info to capture

For each district, gather:


3. Design decision (already decided): Option 1

Districts are areas, not points, so centroid pins are for geographic orientation only — the rich info lives in a table, not crammed into map popups.

Not chosen (context, don’t do these): polygon/GeoJSON boundaries (no clean source published; high effort) and a second separate map (page weight). If a clean district-boundary GeoJSON happens to surface, flag it to the user before switching approaches.


4. Implementation notes


5. Citation / dating (required)

District counts and member-association numbers shift season to season, so source and date them:


6. After the edit


Quick reference: current map block shape (for orientation)

The existing script defines marker(lat, lng, color, name, town, note), two color constants (AAA, PREP), a programs array of marker(...) calls, a forEach that adds them to the map, and a bottom-right legend control. Extend this pattern — add the DIST constant, a districts array, layer groups, and the layers control; expand the legend. Keep everything else intact.