Skip to content

feat: add variant option for maptoolkit.org / maptoolkit.com - #2

Merged
db9795 merged 1 commit into
mainfrom
feat/variant-option
Oct 7, 2026
Merged

db9795 merged 1 commit into
mainfrom
feat/variant-option

Conversation

@db9795

@db9795 db9795 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a variant option so the logo control can be used for both our free maptoolkit.org customers and paying maptoolkit.com customers.

map.addControl(new LogoControl({ variant: "com" }));
  • variant: "org" | "com", defaults to "org" – existing setups keep linking to maptoolkit.org, no breaking change.
  • Link target and title come from an internal preset per variant, so future differences (e.g. a different logo) can be added there without changing the public API.
  • The container gets a maplibre-maptoolkit-logo-control-- modifier class for variant-specific styling.
  • The link target is intentionally not freely configurable.
  • New export: LogoControlVariant type.
  • README: new "Options" section.
  • Changeset: minor.

Testing

  • New unit tests for the default (org) and com variant (link target + modifier class).
  • npm run lint, npm run typecheck, npm run test pass locally.

@db9795
db9795 merged commit 64be92e into main Oct 7, 2026
2 checks passed
@db9795
db9795 deleted the feat/variant-option branch October 7, 2026 10:40
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