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

feat: display static map for inactive List "map" fields #3568

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Aug 27, 2024

Last piece in order to have an end-to-end List option demo ready for tmrw morning - shows a static map when the List item is inactive for any "map" field types.

Hit a funny quirk here testing with "points" where I realised a limitation in the map repository - our geojsonData layer has only ever accounted for polygons before and doesn't currently have a "point" style associated with it ! So will make that update in @opensytemslab/map for a future release, and in the meantime we just slightly adjust our rendering rules based on drawType here 👍

Screenshot from 2024-08-27 12-24-09

(Also sorry Rory @RODO94 I know we bookmarked this task to your name last week, but trying to keep momentum ahead of demos & UR deadline! will be plenty more followup tasks when you're ready to come back into works to trees !)


switch (drawType) {
case "Point":
// Our "geojsonData" layer doesn't have a "point" style yet, so make due with center marker for now!
Copy link
Contributor

Choose a reason for hiding this comment

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

Ha! Totally hadn't appreciated this, smart solution here!

Copy link

github-actions bot commented Aug 27, 2024

Removed vultr server and associated DNS entries

@jessicamcinchak jessicamcinchak merged commit effb072 into main Aug 27, 2024
12 checks passed
@jessicamcinchak jessicamcinchak deleted the jess/inactive-list-map-field branch August 27, 2024 10:58
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