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

Allow Disaster Location Input/Editing Through Visual Editing of Map #88

Open
sunnymui opened this issue Sep 27, 2019 · 0 comments
Open

Comments

@sunnymui
Copy link
Contributor

As a UX enhancement, it would be easier if admin users could directly plot disaster locations on the map from the admin area.

This would also help in editing/expanding the location of a disaster in a visual manner; disaster areas can/do change over time and it can be a pain to convert written info to a map representation. Disasters also aren't always perfect circles area-wise so being able to draw polygonal shapes for a disaster affected area would be useful.

Maps are managed through the Leaflet module and OSM dat. We may gonna need to expose methods into the React app's state so the Leaflet module can send location data to the app. Or maybe we can subscribe the component to the Leaflet data?

Resources:
https://brettdewoody.com/accessing-component-methods-and-state-from-outside-react/
[https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#adding-event-listeners-or-subscriptions]
(https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#adding-event-listeners-or-subscriptions)

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

No branches or pull requests

1 participant