Skip to content

Commit 8d3fec9

Browse files
committed
WIP on map-extent, updates to layer
1 parent 0d38126 commit 8d3fec9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

spec/index.html

+8-5
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ <h3>Changes</h3>
341341
<li><time>2023-06-08</time>: Add initial draft WebIDL for <code>geojson2mapml</code>(). Add prose for <code>back</code>, <code>forward</code>, <code>reload</code>.
342342
<li><time>2023-06-12</time>: Add <code>HTMLGeometryChildElement</code> abstract interface
343343
<li><time>2023-06-29</time>: Update Authoring section. Include definitions of local and remote content.
344+
<li><time>2023-11-05</time>: Correct error in contexts in which <code>map-extent</code> is found. Add opacity attribute to layer.
344345
</ol>
345346
</details>
346347
</section>
@@ -873,6 +874,7 @@ <h4>The <code>&lt;<dfn id="the-layer-element">layer</dfn>&gt;</code> element</h4
873874
if the layer is not not <a href="#attr-layer-hidden"><code>hidden</code></a>. The map author's <a href="#the-title-element"><code>title</code></a> element takes precedence over <code>label</code>, if available.</dd>
874875
<dd id="attr-layer-checked"><code>checked</code> — Turn the layer on/off dynamically on the map. </dd>
875876
<dd id="attr-layer-hidden"><code>hidden</code> — Visibility status of the layer in the layer control. Does not affect visibility of the layer on the map.</dd>
877+
<dd id="attr-layer-opacity"><code>opacity</code> — An initial opacity value which is reflected to the exposed user interface in the layer control for opacity. Opacity values have a decimal range from 0 (transparent) to 1.0 (opaque)</dd>
876878
<dd id="attr-layer-referrerpolicy"><code>referrerpolicy</code><a href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy">Referrer policy</a> for <a href="https://fetch.spec.whatwg.org/#concept-fetch">fetches</a> initiated by the element.</dd>
877879
<dd id="attr-layer-crossorigin"><code>crossorigin</code> — A <a href="https://html.spec.whatwg.org/multipage/urls-and-fetching.html#cors-settings-attribute">CORS settings attribute</a>, specifies how the element handles crossorigin requests.</dd>
878880
<dt><a href="https://html.spec.whatwg.org/multipage/dom.html#concept-element-tag-omission">Tag omission in text/html</a>:</dt>
@@ -2155,7 +2157,7 @@ <h5>The <code>&lt;<dfn id="the-extent-element">extent</dfn>&gt;</code> element</
21552157
<dt><a href="https://html.spec.whatwg.org/multipage/dom.html#concept-element-categories">Categories</a>:</dt>
21562158
<dd><a href="https://html.spec.whatwg.org/multipage/dom.html#metadata-content-2">Metadata content</a>.</dd>
21572159
<dt><a href="https://html.spec.whatwg.org/multipage/dom.html#concept-element-contexts">Contexts in which this element can be used</a>:</dt>
2158-
<dd>In <a href="#dfn-remote-content">remote content</a>, as a child of the <a href="#the-head-element"><code>head</code></a> element.</dd>
2160+
<dd>In <a href="#dfn-remote-content">remote content</a>, as a child of the <a href="#the-body-element"><code>body</code></a> element.</dd>
21592161
<dd>In <a href="#dfn-local-content">local content</a>, as a child of the <a href="#the-layer-element"><code>layer</code></a> element.</dd>
21602162
<dt><a href="https://html.spec.whatwg.org/multipage/dom.html#concept-element-content-model">Content model</a>:</dt>
21612163
<dd>
@@ -2164,10 +2166,11 @@ <h5>The <code>&lt;<dfn id="the-extent-element">extent</dfn>&gt;</code> element</
21642166
</dd>
21652167

21662168
<dt><a href="https://html.spec.whatwg.org/multipage/dom.html#concept-element-attributes">Content attributes</a>:</dt>
2167-
<dd><code>units</code> — The name of the coordinate reference system whose measurement units are to be used by values supplied by child <a href="#the-input-element"><code>input</code></a> elements.</dd>
2168-
<dd><code>label</code> — A text label to be applied to the user interface for the <a href="#the-extent-element"><code>extent</code></a> in the layer control. If no label is supplied, the <a href="#the-extent-element"><code>extent</code></a> will not expose a user interface in the layer control, but will still be displayed on the map.</dd>
2169-
<dd><code>opacity</code> — An initial opacity value, that will be applied to the content retrieved by the <a href="#the-extent-element"><code>extent</code></a>, and which is reflected to the exposed user interface for opacity. Opacity values have a decimal range from 0 (transparent) to 1.0 (opaque).</dd>
2170-
<dd><code>checked</code> — A boolean attribute that sets the initial state of the exposed user interface in the layer control. If checked, the <a href="#the-extent-element"><code>extent</code></a> content is displayed on the map.</dd>
2169+
<dd id="attr-extent-units"><code>units</code> — The name of the coordinate reference system whose measurement units are to be used by values supplied by child <a href="#the-input-element"><code>input</code></a> elements.</dd>
2170+
<dd id="attr-extent-label"><code>label</code> — A text label to be applied to the user interface for the <a href="#the-extent-element"><code>extent</code></a> in the layer control. If no label is supplied, a default value will be generated for non-hidden extents, with the intended meaning of "Sub-layer".</dd>
2171+
<dd id="attr-extent-opacity"><code>opacity</code> — An initial opacity value, that will be applied to the content retrieved by the <a href="#the-extent-element"><code>extent</code></a>, and which is reflected to the exposed layer control user interface for opacity. Opacity values have a decimal range from 0 (transparent) to 1.0 (opaque).</dd>
2172+
<dd id="attr-extent-checked"><code>checked</code> — A boolean attribute that sets the initial state of the exposed user interface in the layer control. If checked, the <a href="#the-extent-element"><code>extent</code></a> content is rendered on the map.</dd>
2173+
<dd id="attr-extent-hidden"><code>hidden</code> — Visibility status of the extent in the layer control. Does not affect visibility of the extent on the map.</dd>
21712174
<dt><a href="https://html.spec.whatwg.org/multipage/dom.html#concept-element-accessibility-considerations">Accessibility considerations</a>:</dt>
21722175
<dd>
21732176
<details class="a11y-details">

0 commit comments

Comments
 (0)