Closed ajlevitz closed 3 years ago
@ajlevitz
But if that were the desired behavior, I would expect the DO NOT USE solution to be viable. So the search is there to assist with panning the map to the correct place, but not with getting polling places? How can we communicate that so that the users would know that form the get-go and not be like me?
What do you think?
This is a tricky one 🙈 @elizzard I think you hit on something important which is that it's kind of broken even if you're just going through the more typical flow of:
If we can make that work better, I think we might solve the unhappy path you identified as well @ajlevitz.
What about something like:
We can keep Mapbox from dropping a pin by setting marker: false
in the geocoder options.
The open question is—how do we nudge the user to place a pin after that? Maybe we float a text bubble over the map that says "We've tried to find that location. Next, click the map to see polling places." ? Or that text could go in the existing header for "You've selected [...]"? (The latter is probably easier.)
@ajlevitz @elizzard I took a pass at adding the help text after you use the search box. This ain't pretty but just as a POC:
Demo at: https://5f9bac5f4b898591a1198c16--az-polling-place-map-ilc.netlify.app
The code is on a branch add-geocoder-help-text
Let me know you think something like this might work (and open to any and all style suggestions!)
@rbrtmrtn I tried the demo, and I like the flow. Don't have any style points.
One thing - do we care about accessibility? I know very little about UX in this respect. Also this may be beyond scope. But I just wonder - how do people interact with the map using only voice? (I saw people use siri that way, for instance)
Closed by 709e9343c988ad6093a438a3ccab0a057fcfdab2.
@elizzard sorry I didn't mean to close this without responding to your comment!
I think that's a great question re: how do people navigate this using their voice. I'm not super well-versed in accessibility either, so I don't have a great answer, but we may be somewhat at the mercy of the Mapbox geocoder there. I would think/hope their (pretty awesome) team considered that in building the geocoding plugin, but IMO it's still a good question to ask.
It would be great to include that in an accessibility/UX review maybe after Election Day, given how close we are 🙁 I hate that we have to descope that for now, but it may take some expertise that I'm not sure our team has currently. USDR should be able to help!
@rbrtmrtn I have an incling that the search field on the map may actually be the accessibility feature. So that would be (speech-to-text) - find search box, enter location, the search drops pin at the search result.. That is obviously conflicting with the do-not-use solution though. Yeah, a subject matter expert would be useful to consult later :)
Problem:
Ideal solution:
Possible solution:
DO NOT USE solution: