-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
Aligns better with with WHATWG's style.
Allowed keywords are I suppose we could add |
@@ -625,7 +630,8 @@ <h4>The <code><<dfn id="the-map-element">map</dfn>></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.
This comment was marked as outdated.
Sorry, something went wrong.
There was a problem hiding this 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.
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.