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: add Boundary to Map and Label comp #3823

Merged
merged 6 commits into from
Oct 17, 2024
Merged

feat: add Boundary to Map and Label comp #3823

merged 6 commits into from
Oct 17, 2024

Conversation

RODO94
Copy link
Contributor

@RODO94 RODO94 commented Oct 17, 2024

Coming from user feedback contained in the Trello Ticket: https://trello.com/c/liDbYC96/3094-both-options-show-static-boundary-or-address-point-for-reference-using-geojsondata-prop?filter=member:rorydoak2

We have added the boundary to map components so users can clearly see their property boundary when adding trees.

Main changes are using the geoJsonData prop to populate a readonly boundary using passport data

Screen.Recording.2024-10-17.at.11.45.59.mov

Copy link

github-actions bot commented Oct 17, 2024

Removed vultr server and associated DNS entries

@RODO94 RODO94 marked this pull request as ready for review October 17, 2024 10:51
@RODO94 RODO94 requested a review from a team October 17, 2024 10:52
Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

Works as expected for me !

@@ -227,6 +227,8 @@ const Root = () => {
previouslySubmittedData,
} = mapAndLabelProps;

const [passport] = useStore((state) => [state.computePassport()]);
Copy link
Contributor

Choose a reason for hiding this comment

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

fyi: If we're just grabbing a single value, we can use the following notation -

Suggested change
const [passport] = useStore((state) => [state.computePassport()]);
const passportData = useStore((state) => state.computePassport().data);

@RODO94 RODO94 merged commit 7af28cd into main Oct 17, 2024
12 checks passed
@RODO94 RODO94 deleted the rory/map-boundary branch October 17, 2024 12:31
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