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: dispatch events for area and geojson changes beyond drawMode #69

Merged
merged 1 commit into from
Oct 27, 2021

Conversation

jessicamcinchak
Copy link
Member

Replaces console.logs with this.dispatch() (which you'll still see in your console when debugging is enabled).

See index.html comments for which event names are applicable to which data "modes" (drawing, showing/clicking features, loading static data etc).

This helps us prototype a click-to-select interaction in PlanX's DrawBoundary and have feature parity with current drawMode - for example, by showing the area below the map and setting property.boundary.site passport variables as the geojson representation of merged OS Features.

Closes #23

@netlify
Copy link

netlify bot commented Oct 21, 2021

✔️ Deploy Preview for oslmap ready!

🔨 Explore the source changes: 5b4ad27

🔍 Inspect the deploy log: https://app.netlify.com/sites/oslmap/deploys/61717b4ac7fcc700070aad30

😎 Browse the preview: https://deploy-preview-69--oslmap.netlify.app/

@jessicamcinchak jessicamcinchak requested a review from a team October 21, 2021 14:38
@jessicamcinchak jessicamcinchak merged commit 22fc22f into main Oct 27, 2021
@jessicamcinchak jessicamcinchak deleted the jess/dispatch-events branch October 27, 2021 08:11
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.

Dispatch events for area & geojson changes across all modes
2 participants