Skip to content

Commit 173e972

Browse files
prushforprushfor
prushfor
authored and
prushfor
committed
Update extent, layer, editors.
1 parent 8d3fec9 commit 173e972

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

spec/index.html

+19-12
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
{
2323
name: "Peter Rushforth",
2424
company: "Natural Resources Canada"
25-
},
26-
{
27-
name: "Robert Linder"
2825
}
2926
],
3027
authors: [
@@ -341,7 +338,7 @@ <h3>Changes</h3>
341338
<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>.
342339
<li><time>2023-06-12</time>: Add <code>HTMLGeometryChildElement</code> abstract interface
343340
<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.
341+
<li><time>2023-11-05</time>: Correct error in contexts in which <code>map-extent</code> is found. Add opacity attribute to layer. Update editors. Add WebIDL for <code>layer</code> <code>opacity</code>; Add or update <code>extent</code> attributes for <code>label</code>, <code>checked</code>, <code>hidden</code>, <code>opacity</code> and <code>disabled</code>.
345342
</ol>
346343
</details>
347344
</section>
@@ -923,6 +920,7 @@ <h4>The <code>&lt;<dfn id="the-layer-element">layer</dfn>&gt;</code> element</h4
923920
attribute boolean <a href="#attr-layer-checked">checked</a>;
924921
readonly attribute boolean <a href="#attr-layer-disabled">disabled</a>;
925922
attribute boolean <a href="#attr-layer-hidden">hidden</a>;
923+
attribute double <a href="attr-layer-opacity">opacity</a>;
926924
attribute DOMString <a href="#attr-layer-referrerpolicy">referrerPolicy</a>;
927925
attribute DOMString? <a href="#attr-layer-crossorigin">crossOrigin</a>;
928926
undefined zoomTo();
@@ -937,7 +935,7 @@ <h4>The <code>&lt;<dfn id="the-layer-element">layer</dfn>&gt;</code> element</h4
937935
</dd>
938936
</dl>
939937
<p>The <a href="#the-mapml-viewer-element"><code>mapml-viewer</code></a> element displays its child <a href="#the-layer-element"><code>layer</code></a> elements similarly to (partially) transparent "acetate" layers on a (paper) map. The layers follow the <a href="https://www.w3.org/TR/SVG/render.html#PaintersModel">painters model</a>, whereby
940-
<a href="#the-layer-element"><code>layer</code></a> elements are displayed on top of earlier siblings according to their document order. <a href="#the-layer-element"><code>layer</code></a> transparency is controlled by the CSS opacity property. [[SVG2]] [[css-color-3]]</p>
938+
<a href="#the-layer-element"><code>layer</code></a> elements are displayed on top of previous siblings according to their document order. <a href="#the-layer-element"><code>layer</code></a> transparency is controlled by the <a href="attr-layer-opacity">opacity</a> attribute.</p>
941939

942940
<p>In contrast to the <a href="https://html.spec.whatwg.org/multipage/media.html#media-element">HTML media elements' <code>source</code></a> child element where a single
943941
<a href="https://html.spec.whatwg.org/multipage/media.html#media-element"><code>source</code></a> element is selected by the user agent for play, the <a href="#the-mapml-viewer-element"><code>mapml-viewer</code></a> element's child <a href="#the-layer-element"><code>layer</code></a> elements are
@@ -2167,7 +2165,7 @@ <h5>The <code>&lt;<dfn id="the-extent-element">extent</dfn>&gt;</code> element</
21672165

21682166
<dt><a href="https://html.spec.whatwg.org/multipage/dom.html#concept-element-attributes">Content attributes</a>:</dt>
21692167
<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>
2168+
<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 <code>label</code> content attribute is supplied, a default internationalized string value will be generated and rendered for non-hidden extents.</dd>
21712169
<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>
21722170
<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>
21732171
<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>
@@ -2211,18 +2209,27 @@ <h5>The <code>&lt;<dfn id="the-extent-element">extent</dfn>&gt;</code> element</
22112209
interface HTMLExtentElement : HTMLElement {
22122210
[HTMLConstructor] constructor();
22132211

2214-
attribute DOMString units;
2215-
readonly attribute long length;
2216-
getter Element (unsigned long index);
2217-
getter (RadioNodeList or Element) (DOMString name);
2218-
};
2212+
attribute DOMString <a href="#attr-extent-units">units</a>;
2213+
attribute DOMString <a href="#attr-extent-label">label</a>;
2214+
attribute boolean <a href="#attr-extent-checked">checked</a>;
2215+
readonly attribute boolean <a href="#attr-extent-disabled">disabled</a>;
2216+
attribute boolean <a href="#attr-extent-hidden">hidden</a>;
2217+
attribute double <a href="attr-extent-opacity">opacity</a>; };
22192218
</pre>
22202219
</dd>
22212220
</dl>
22222221
<p>
2223-
The <a href="#the-extent-element"><code>extent</code></a> element is a map-associated affordance, which contains input and link elements, whose job it is to serialize location event properties that can be submitted to a server for processing.
2222+
The <a href="#the-extent-element"><code>extent</code></a> element is a map-associated affordance, which contains <a href="#the-input-element"><code>input</code></a> and <a href="#the-link-element"><code>link</code></a> elements, whose job it is to serialize location event properties that can be submitted to a server for processing. Returned content is rendered on the map in the DOM sequence order of the <code>extent</code> child element among its siblings in the parent element. The <code>extent</code>'s content rendered transparency is controlled by the <code>opacity</code> attribute.
22242223
</p>
22252224
<p>The <code>units</code> attribute indicates the parent TCRS that location events shall be generated for, and serialized as requested by the <code>extent</code>'s contents.</p>
2225+
2226+
<p>The <code>label</code> IDL attribute reflects the content attribute, if present. If no content attribute is present, the IDL attribute returns an internationalized string for 'Sub-layer'.</p>
2227+
2228+
<p>The display state (on / off) of the content represented by the <code>extent</code> element is controlled by the <code>checked</code> boolean attribute. If <code>checked</code> is true, the <code>extent</code> is rendered on the map; if not <code>checked</code> the <code>extent</code> is not rendered but should remain visible in the <code>mapml-viewer</code> element's representation of controls, in an un-checked state.</p>
2229+
2230+
<p>The <code>hidden</code> boolean attribute can be set to remove the <code>extent</code> from the map layer control, but it will remain displayed on the map. In order to remove the <code>extent</code> content from the map, it can have its <code>checked</code> property toggled, or the element can be removed from the DOM.</p>
2231+
2232+
<p>The <code>disabled</code> IDL attribute is a read-only boolean representation of the visibility of the <code>extent</code> contents on the map. If the <code>extent</code> is not visible due to errors, including projection, zoom or bounds mismatch, the <code>disabled</code> IDL attribute will return true. If the <code>extent</code> is present in the layer control (i.e. <code>hidden</code> is false), its <code>checked</code> state will be disabled until the error condition is corrected, for example by zooming to the <code>extent</code>'s bounds.</p>
22262233

22272234
</section>
22282235
<section>

0 commit comments

Comments
 (0)