Skip to content

fix(map): resolving map flashing issue by moving neutralization from runtime to build time#22

Merged
ronload merged 4 commits into
mainfrom
fix/map-flashing-after-loaded
Apr 16, 2026
Merged

fix(map): resolving map flashing issue by moving neutralization from runtime to build time#22
ronload merged 4 commits into
mainfrom
fix/map-flashing-after-loaded

Conversation

@ronload

@ronload ronload commented Apr 16, 2026

Copy link
Copy Markdown
Owner

Summary

Resolving CartoDB default color schee flashing issue during map loading. By moving map color neutralization to build time.

Change

New

  • scripts/process-map-styles.ts: ETL script, getting stylesheet from CartoDB and do neutralization.
  • public/data/styles/dark-matter-neutral.json: Dark theme preprocess scheme.
  • public/data/styles/prositron-neutral.json: Light theme preprocess scheme.

Modified

  • scripts/etl.ts: Process map style integration. (pnpm etl)
  • src/components/custom/map.ts: Use local preprocessing style, remove NeutralizaColors component.

Deleted

  • src/lib/map-proxy.ts: Remove functions migrated such as neutalizeMapColors.

Commits

  • feat(map): add etl script for preprocessing map styles
  • feat(etl): integrate map style processing
  • refactor(map): use preprocessed styles, remove runtime neutralization
  • chore: add generated map style assets

@vercel

vercel Bot commented Apr 16, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
zipkit Ready Ready Preview, Comment Apr 16, 2026 10:37am

@ronload ronload merged commit 6a8c7e0 into main Apr 16, 2026
3 checks passed
@ronload ronload deleted the fix/map-flashing-after-loaded branch April 16, 2026 10:38
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.

1 participant