Skip to content

feat: create @europeana/map component package#335

Merged
rwd merged 15 commits into
mainfrom
feat/EC-7808-create-map-component-package
Jun 29, 2026
Merged

feat: create @europeana/map component package#335
rwd merged 15 commits into
mainfrom
feat/EC-7808-create-map-component-package

Conversation

@rwd

@rwd rwd commented Jun 23, 2026

Copy link
Copy Markdown
Contributor
  • creates a new package @europeana/map for a component to render a map using OpenLayers & OpenStreetMap, displaying clustered points for GeoJSON data supplied either directly in the json prop/attribute or accessible via the URL in
    the url prop/attribute
  • built as both a Vue 3 component for direct use in Vue 3 apps, and as a bundled app for use elsewhere via CDN import
  • commands (from repo root):
    • run dev server: pnpm --filter @europeana/map dev
    • build bundles: pnpm --filter @europeana/map build
    • run preview server: pnpm --filter @europeana/map preview
    • publish: pnpm --filter @europeana/map publish --access public
      • (after versioning with pnpm dlx lerna version)

@github-actions

Copy link
Copy Markdown
Contributor

JIRA ticket: EC-7808

Comment thread packages/components/map/test/fixtures.js Fixed
Comment thread packages/components/map/test/fixtures.js Fixed
@sonarqubecloud

Copy link
Copy Markdown

if (props.json) {
data.value = JSON.parse(props.json);
} else if (props.url) {
useFetch(props.url)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider validating URL to limit this to only fetching the url if it matches whitelisted endpoints.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would severely limit its reusability.


## Usage

TODO

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's document the available scripts here already. dev/build/preview

Maybe also a note about versioning?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That can wait.

@@ -0,0 +1,10 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we could add this to the iconmoo font like we manage the other icons.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt that given that OpenLayers expects an image src.

@rwd rwd merged commit c0681b3 into main Jun 29, 2026
24 checks passed
@rwd rwd deleted the feat/EC-7808-create-map-component-package branch June 29, 2026 14:13
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.

3 participants