Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
<layer> crossorigin attribute (#28)
Browse files Browse the repository at this point in the history
* Add `crossorigin` to `<layers>`'s content attributes

* crossOrigin IDL

* Update index.html

* Fix indentation

* Add `crossorigin` to <layer>s in <map> examples
  • Loading branch information
Malvoz authored May 11, 2020
1 parent 9855f02 commit ad6e51f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ <h5 id="the-layer-element"><em><span class="secno">4.1.2</span> The <dfn><code>l
<dd id="attr-layer-checked"><em><code><a href="#attr-layer-checked">checked</a></code> - Layer on/off status</em></dd>
<dd id="attr-layer-hidden"><em><code><a href="#attr-layer-hidden">hidden</a></code> - Visibility status of the layer in the layer control</em></dd>
<dd id="attr-layer-referrerpolicy"><em><code><a href="#attr-layer-referrerpolicy">referrerpolicy</a></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</em></dd>
<dd id="attr-layer-crossorigin"><em><code><a href="#attr-layer-crossorigin">crossorigin</a></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.</em></dd>
<dt><span>Tag omission in text/html</span>:</dt>
<dd>Neither tag is omissible</dd>
<dt>Allowed <a target="_blank" href="https://www.w3.org/TR/2014/REC-html5-20141028/dom.html#aria-role-attribute">ARIA role attribute</a> values:</dt>
Expand All @@ -462,7 +463,8 @@ <h5 id="the-layer-element"><em><span class="secno">4.1.2</span> The <dfn><code>l
<em> readonly attribute boolean <a href="#attr-layer-disabled">disabled</a>;</em>
<em> attribute boolean <a href="#attr-layer-hidden">hidden</a>;</em>
<em> readonly attribute <a href="#legendlink">LegendLink[]</a> legendLinks;</em>
<em> attribute DOMString <a href="#attr-layer-referrerpolicy">referrerpolicy</a>;</em>
<em> attribute DOMString <a href="#attr-layer-referrerpolicy">referrerPolicy</a>;</em>
<em> attribute DOMString? <a href="#attr-layer-crossorigin">crossOrigin</a>;</em>
};

interface <dfn id="legendlink">LegendLink</dfn> {
Expand Down Expand Up @@ -629,7 +631,7 @@ <h5 id="authoring"><span class="secno">4.2.1 </span>Authoring</h5>
<p>This map can be created with the following markup:</p>

<pre>&lt;map zoom="11" lat="48.85591" lon="2.3469543" width="640" height="300"&gt;
&lt;layer label="Open Street Map" src="https://example.com/mapml/osm/" checked&gt;&lt;/layer&gt;
&lt;layer label="OpenStreetMap" src="https://example.com/mapml/osm/" checked crossorigin&gt;&lt;/layer&gt;
&lt;/map&gt;
</pre>

Expand All @@ -652,8 +654,8 @@ <h5 id="authoring"><span class="secno">4.2.1 </span>Authoring</h5>
}
&lt;/style&gt;
&lt;map zoom="15" lat="45.398043" lon="-75.70683" width="640" height="300" projection="CBMTILE"&gt;
&lt;layer label="Canada Base Map" src="https://example.com/mapml/cbmt/" checked&gt;&lt;/layer&gt;
&lt;layer label="CanVec+ 031G" src="https://example.com/mapml/canvec/50k/features/" class="transparency"&gt;&lt;/layer&gt;
&lt;layer label="Canada Base Map" src="https://example.com/mapml/cbmt/" checked crossorigin&gt;&lt;/layer&gt;
&lt;layer label="CanVec+ 031G" src="https://example.com/mapml/canvec/50k/features/" crossorigin class="transparency"&gt;&lt;/layer&gt;
&lt;/map&gt;
</pre>

Expand Down

0 comments on commit ad6e51f

Please sign in to comment.