You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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>.
<p>The <ahref="#the-mapml-viewer-element"><code>mapml-viewer</code></a> element displays its child <ahref="#the-layer-element"><code>layer</code></a> elements similarly to (partially) transparent "acetate" layers on a (paper) map. The layers follow the <ahref="https://www.w3.org/TR/SVG/render.html#PaintersModel">painters model</a>, whereby
940
-
<ahref="#the-layer-element"><code>layer</code></a> elements are displayed on top of earlier siblings according to their document order. <ahref="#the-layer-element"><code>layer</code></a> transparency is controlled by the CSS opacity property. [[SVG2]] [[css-color-3]]</p>
938
+
<ahref="#the-layer-element"><code>layer</code></a> elements are displayed on top of previous siblings according to their document order. <ahref="#the-layer-element"><code>layer</code></a> transparency is controlled by the <ahref="attr-layer-opacity">opacity</a> attribute.</p>
941
939
942
940
<p>In contrast to the <ahref="https://html.spec.whatwg.org/multipage/media.html#media-element">HTML media elements' <code>source</code></a> child element where a single
943
941
<ahref="https://html.spec.whatwg.org/multipage/media.html#media-element"><code>source</code></a> element is selected by the user agent for play, the <ahref="#the-mapml-viewer-element"><code>mapml-viewer</code></a> element's child <ahref="#the-layer-element"><code>layer</code></a> elements are
<ddid="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 <ahref="#the-input-element"><code>input</code></a> elements.</dd>
2170
-
<ddid="attr-extent-label"><code>label</code> — A text label to be applied to the user interface for the <ahref="#the-extent-element"><code>extent</code></a> in the layer control. If no labelis supplied, a default value will be generated for non-hidden extents, with the intended meaning of "Sub-layer".</dd>
2168
+
<ddid="attr-extent-label"><code>label</code> — A text label to be applied to the user interface for the <ahref="#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>
2171
2169
<ddid="attr-extent-opacity"><code>opacity</code> — An initial opacity value, that will be applied to the content retrieved by the <ahref="#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
2170
<ddid="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 <ahref="#the-extent-element"><code>extent</code></a> content is rendered on the map.</dd>
2173
2171
<ddid="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>
The <ahref="#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 <ahref="#the-extent-element"><code>extent</code></a> element is a map-associated affordance, which contains <ahref="#the-input-element"><code>input</code></a> and <ahref="#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.
2224
2223
</p>
2225
2224
<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>
0 commit comments