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

Add controlslist content attribute and controlsList IDL #127

Merged
merged 4 commits into from
Sep 28, 2020

Conversation

Malvoz
Copy link
Member

@Malvoz Malvoz commented Sep 27, 2020

Fix #99.

Mostly copy pasta from https://wicg.github.io/controls-list/html-output/multipage/embedded-content.html#attr-media-controlslist, with small modifications since this is about maps and not video.

A little reminder that controlslist may not be sufficient per @AmeliaBR's Maps4HTML/HTML-Map-Element-UseCases-Requirements#16 (comment), until someone comes along with a concrete proposal we should probably use what's currently on the web.

@Malvoz Malvoz requested a review from prushforth September 27, 2020 23:00
@Malvoz
Copy link
Member Author

Malvoz commented Sep 27, 2020

Allowed keywords are nofullscreen, nolayer and nozoom.

I suppose we could add nodownload and noremoteplayback too...? It depends on if we think those controls should be available by default (they are for video), relevant discussion: #88.

@@ -625,7 +630,8 @@ <h4>The <code>&lt;<dfn id="the-map-element">map</dfn>&gt;</code> element</h4>
<dd><code id="attr-map-lat">lat</code> — A decimal WGS84 latitude value for the map center.</dd>
<dd><code id="attr-map-lon">lon</code> — A decimal WGS84 longitude value for the map center.</dd>
<dd><code id="attr-map-projection">projection</code> — A case-sensitive string <a href="#tiled-coordinate-reference-systems-table">identifier</a> of the MapML coordinate reference system used by the map. Default is <a href="#tcrs-OSMTILE"><code>OSMTILE</code></a>.</dd>
<dd><code id="attr-map-controls">controls</code> — Show user agent map controls.</dd>
<dd><code id="attr-map-controls">controls</code> — Show user agent controls.</dd>
<dd><code>controlslist</code> — Show/hide specific user agent controls.</dd>

This comment was marked as outdated.

Copy link
Member

@prushforth prushforth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. By adding the nozoom and nolayer keywords, we should add these to an issue in the web-map-custom-element, in order to keep track of what is not implemented yet and keep the polyfill reflecting the spec, although I realize there may be current gaps and overshoots. But anyway, looks good.

@prushforth prushforth merged commit c6df0f7 into Maps4HTML:gh-pages Sep 28, 2020
@Malvoz Malvoz deleted the controlslist branch May 10, 2021 23:20
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

Successfully merging this pull request may close these issues.

Add controlslist attribute and property to specification
2 participants