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

Capability: Hide or show content outside the map display #239

Open
Malvoz opened this issue Nov 26, 2020 · 3 comments
Open

Capability: Hide or show content outside the map display #239

Malvoz opened this issue Nov 26, 2020 · 3 comments
Labels
discussion: capability a specific capability or feature: should it be included? what details? should it be a requirement? section: map viewer Capabilities & use cases for declarative map viewer widgets status: suggestion this issue discusses a suggested addition to the report, that is not yet in the draft

Comments

@Malvoz
Copy link
Member

Malvoz commented Nov 26, 2020

Given the content-rich nature of map viewers, I believe there's precedent for all content outside the map display to be hidden from the user by default, and only exposed (to ATs and in the tab order) once panned into view. This is different from how regular overflowing elements work, where content is always available to the user, and can be sequentially navigated/scrolled into view.

(The capability "Hide or show (and maybe dynamically load) vector features and labels on zoom" is closely related in that content is exposed (loaded) on user navigation, should it be modified to accommodate for the above, or does it make more sense for this to be a separate capability?)

However in some cases the content outside of the map display is relevant to the user, for example when presenting a route from location A to location B, where B is outside of the map display it should probably be exposed to the user in some fashion.

This is seemingly an essential capability, I suggest labelling as requirement.


I haven't yet had the time to look into which resources exist for the reviewed tools to enable such functionality, but take a regular Leaflet map with 5000 markers (source), the result is the equal amount of elements in the tab order – No bueno.

@Malvoz Malvoz added discussion: capability a specific capability or feature: should it be included? what details? should it be a requirement? status: suggestion this issue discusses a suggested addition to the report, that is not yet in the draft section: map viewer Capabilities & use cases for declarative map viewer widgets labels Nov 26, 2020
@prushforth
Copy link
Member

A related use case might be client side Ctrl-F (find) where the user can search for a string in rendered text, and the browser will autoscroll to the matching content.

In any case, this highlights that the rendering of map content is a different but related problem to rendering document content.

Should the hide/show not depend on how the content is marked up by the domain? Sometimes map content is important enough to have a tab stop associated (e.g. a step in navigation directions), sometimes it's purely visual. Seems to me that this is related also to Brandon Biggs assertion during his workshop panel and presentation that feature content should always have a name property. So maybe, on the flip side, unimportant content should never have a name property, and perhaps is not worth even serving a representation of?

@Malvoz
Copy link
Member Author

Malvoz commented Dec 1, 2020

A related use case might be client side Ctrl-F (find) where the user can search for a string in rendered text, and the browser will autoscroll to the matching content.

I don't want to speculate on how much/which content outside of the map display and under what circumstances should be available to ATs, but there's some potentially related work (the low level primitive?) on content-visibility: hidden-matchable by CSSWG: w3c/csswg-drafts#5595

@prushforth
Copy link
Member

but there's some potentially related work (the low level primitive?) on content-visibility: hidden-matchable by CSSWG: w3c/csswg-drafts#5595

You make the greatest finds, Robert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion: capability a specific capability or feature: should it be included? what details? should it be a requirement? section: map viewer Capabilities & use cases for declarative map viewer widgets status: suggestion this issue discusses a suggested addition to the report, that is not yet in the draft
Projects
None yet
Development

No branches or pull requests

2 participants