Skip to content

Adds share feature in map control plugin, reusing adapters from share export plugin. #209

Draft
BhattaraiSijan wants to merge 1 commit into
feat/mapcontrol-pluginfrom
feat/share-button-in-mapcontrol
Draft

Adds share feature in map control plugin, reusing adapters from share export plugin. #209
BhattaraiSijan wants to merge 1 commit into
feat/mapcontrol-pluginfrom
feat/share-button-in-mapcontrol

Conversation

@BhattaraiSijan

Copy link
Copy Markdown
Collaborator

Description

Adds a Share map button to the MapControl bar, reusing ShareExport's existing share feature end-to-end.

  • Promoted shareActions / sharePdf / download from ShareExport to Tools/_shared/adapters/ — the copy-link / export-PNG / export-PDF logic is plugin-agnostic (it reaches core only over the bus: map:writeCoordinateURL, map:getScreenshot, app:copyText), so any plugin can now host an export feature. ShareExport's only change is the import path.
  • MapControl bar gained a generic endSlot — the lib stays MMGIS-free; the adapter fills the slot with ShareExport's ShareMenu component (identical dropdown/behavior), with the trigger restyled to the Figma design (dark filled button, USWDS tokens) via a CSS override scoped to the bar.
  • New per-mission Share toggle in MapControl's Configure options (default on).

ShareExport still works standalone and is visually unchanged. Note: enabling both plugins in one mission shows two share buttons — pick one via config (float-zone layout discussion: #203).

Testing

Manual: share button renders at the right end of the bar; copy link / PNG / PDF work from it; ShareExport's own card unaffected. tsc clean, 786 unit tests + e2e smoke pass.

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