Skip to content

feat(export): Instagram square, portrait & story PNG presets - #39

Merged
mapzimus merged 1 commit into
masterfrom
cursor/export-presets-ig-92b4
Aug 1, 2026
Merged

feat(export): Instagram square, portrait & story PNG presets#39
mapzimus merged 1 commit into
masterfrom
cursor/export-presets-ig-92b4

Conversation

@mapzimus

@mapzimus mapzimus commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Adds aspect-ratio presets for PNG export so maps are ready for Instagram (and similar) without a second capture path.

What’s included

  • Save & Share aspect row: Landscape (default) · Square 1:1 · Portrait 4:5 · Story 9:16
  • captureMapImage({ aspect }) — single capture entry, default landscape (1010:710) so Classroom worksheet packs / legacy callers stay unchanged
  • Square/portrait/story force a taller frame; the US map letterboxes via existing preserveAspectRatio="xMidYMid meet"
  • Filename suffix (-square, -portrait, -story) + analytics aspect field
  • Static smoke: npm run smoke:export-aspect

Out of scope / notes

Test plan

  • Create a map → Share → each preset → Save as Image; confirm frame ratios
  • Confirm landscape matches prior exports
  • npm run validate + npm run smoke:export-aspect
Open in Web Open in Cursor 

Add Landscape / Square / Portrait / Story aspect controls in Save & Share.
captureMapImage() accepts an optional aspect (default landscape) so
worksheet packs and legacy callers keep the 1010:710 map frame.

Co-authored-by: Max <mhowe.gis@gmail.com>
@vercel

vercel Bot commented Aug 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mapparatus Ready Ready Preview Aug 1, 2026 10:03pm
tappymaps Ready Ready Preview Aug 1, 2026 10:03pm

@mapzimus
mapzimus marked this pull request as ready for review August 1, 2026 22:09
@mapzimus
mapzimus merged commit 17ac1d3 into master Aug 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants