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

Use case (author / website visitor): Have the map widget adjust to available space responsively #174

Open
AmeliaBR opened this issue Sep 24, 2019 · 1 comment
Labels
discussion: use case a possible use case: should it be included? what should it say? status: suggestion this issue discusses a suggested addition to the report, that is not yet in the draft

Comments

@AmeliaBR
Copy link
Member

As discussed in #168, ideally map viewer widgets would be responsive for easily adapting to the device size.

Not sure whether to list this as an authoring use case (want the widget to fit your site design), or as an end-user use case (want the widget to fit your device, whether or not the author thought about it).

@AmeliaBR AmeliaBR added discussion: use case a possible use case: should it be included? what should it say? status: suggestion this issue discusses a suggested addition to the report, that is not yet in the draft labels Sep 24, 2019
@Malvoz
Copy link
Member

Malvoz commented Oct 7, 2019

As discussed in #168

That discussion mainly revolves around having the map viewer not be wider than the viewport. But no other HTML element is responsive by default, I don't think the map viewer should be.

max-width: 100% on the map viewer element should be sufficient to achieve responsiveness.

Or is this about having the exposed user interface (MapML's definition for reference) adapt to the available space?

Comparing to video, if a default control doesn't have enough space, it is display: none (in Chrome at least):

Chrome hides controls if not enough space

Additionally, it'd probably be convenient if the UA would hide certain "secondary" but default controls in a menu:

video menu example

video menu open example

Edit: I brought this up in openui/open-ui#213 (comment) (issue for improving the standard media elements).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion: use case a possible use case: should it be included? what should it say? 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