-
Notifications
You must be signed in to change notification settings - Fork 16
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
Focus outline on map and query target indicator / cross-hairs #260
Comments
Showing an outline on leaflet-container-focus-outline.mp4A second problem is that some content inside the map such as the attribution container and the map graphics are overlapping the outline.
If we can, yes. It is still a failure of SC 2.4.7 Focus Visible even though we've fixed outlines for all the other focusable components. Edit: One could argue that the issues described above shouldn't dissaude us from displaying a visible focus indicator. Should we just enable it? |
Would such a query return any information to the user? What does the visual indicator represent? The coordinates of the location? The Leaflet.MapCenterCoord plugin does something similar where it exposes the coordinates to the user. Maybe the coordinates could/should be announced when space is pressed? The visual display of the coordinates could be optional (opt-in/opt-out). Another consideration is if it should have a control (whether default control and/or available from the context menu). |
Could focus-within be used? |
@ahmadayubi focus is still triggered the same way, producing the same behavior as |
Ah okay, I recently added the ability to focus vector features so I was thinking |
Why isn't outline set to the vector feature directly in that case? That way the user would know which feature as focus. Is it because features outside the map view can be focused? |
No the feature is outlined but it might be helpful to have both the feature focused outlined and the map outlined at the same time. Similar to how google maps outlines the entire map when you are navigating with keyboard and tabs. |
I think so. I asked Ahmad to put the cross-hair on when the map is focused. We can deal with the focus outline as a separate issue, since we may have to figure out how to make it work better than is currently possible, it seems.
It depends on how the service is set up. In principle, I think the experience with server-generated responses should be indistinguishable from client interaction with features in most respects. For example, I've set up GeoServer to respond with a (single)
It represents the center of the map, but more specifically it represents the location that will be used in the query when you touch the spacebar. When you use a mouse or touch screen, you can control where you touch on the map, and thus where the query lands; when using the keyboard to control the map you don't have a general way to point, except to center the map on the location which you want to interact with. By rendering the center of the map as a cross-hair, you can have an idea of where you're going to query.
I don't think it's worth reading out the coordinates because they are fairly meaningless to people.
OTOH, it might be worthwhile ensuring that the debug menu coordinates display shows the coordinates of the center of the map when the map is focused (i.e. when the cross-hair is displayed).
Maybe. I think the cross-hairs are enough to signify when a query layer is available, but as you say there's no other visual indication when the map isn't focused. It might be worthwhile having a minimal visual cue that's present when there's either a query available or features available for focus?? |
@Malvoz I was looking at our mapml-viewer today while tabbing, and I noticed that there is no focus outline on the map when focused. Should we fix this?
Also, I set it up so that when you hit the spacebar with the map focused, you issue a query against the center of the map, if there is a query layer in effect. I was thinking we might reasonably add a cross-hair or some visible indicator of the query location before the query gets issued. The cross-hair would only show up when the map is focused, perhaps.
Any advice you have about making that facility more accessible would be appreciated.
The text was updated successfully, but these errors were encountered: