Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map country areas and makes map points optional if country is used #486

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

lukestanley
Copy link
Member

@lukestanley lukestanley commented Aug 13, 2024

Makes Map block able to accept a "country" property in the array of map points it processes, that show as an area, the values must be 3 letter ISO country codes.
Shading for area can be adjusted.
Custom map pin points may be set to an emoji flag.
Documentation has been removed from this branch.
A unit tests file for the block was added but is removed from this branch.

image

This should meet requirements for: #483

To help deliver the code changes faster for Donald to use from main, my existing pull request which code, tests and documentation are to be broken up, with these code changes to be pursued first. The rest need doing for this issue: #488

Copy link

vercel bot commented Aug 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kendraio-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 13, 2024 10:24am

Copy link
Collaborator

@CodeKrakken CodeKrakken left a comment

Choose a reason for hiding this comment

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

I've queried one thing but I'm happy to approve this either way - just curious really.

};

// In-memory cache for country GeoJSON data
countryCache: { [key: string]: any } = {};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to use an any here?

Copy link
Member Author

Choose a reason for hiding this comment

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

The object is being mutated, so I instinctively typed it as 'any' to avoid any issues. A different format could be possible.

@lukestanley lukestanley merged commit 3e1df33 into develop Aug 15, 2024
3 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