Skip to content

Commit

Permalink
Add the layer.zoomTo() WebIDL method
Browse files Browse the repository at this point in the history
  • Loading branch information
prushforth committed Mar 15, 2023
1 parent f406573 commit 675a174
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ <h3>Changes</h3>
<li><time>2021-09-08</time>: Remove undefined and unresolved <code>LinkStyle</code> interface reference, per <a href="https://github.com/Maps4HTML/MapML/issues/212">#212</a></li>
<li><time>2021-09-08</time>: Remove <code>legendLinks</code> attribute and interface definition and reference, per <a href="https://github.com/Maps4HTML/MapML/issues/212">#212</a></li>
<li><time>2023-02-24</time>: Remove <code>datalist</code> element and associated input <code>shard</code> and <code>list</code> attributes.
<li><time>2023-03-13</time>: Add <code>layer.zoomTo()</code> method.
</ol>
</details>
</section>
Expand Down Expand Up @@ -764,6 +765,7 @@ <h4>The <code>&lt;<dfn id="the-layer-element">layer</dfn>&gt;</code> element</h4
attribute boolean <a href="#attr-layer-hidden">hidden</a>;
attribute DOMString <a href="#attr-layer-referrerpolicy">referrerPolicy</a>;
attribute DOMString? <a href="#attr-layer-crossorigin">crossOrigin</a>;
undefined zoomTo();
};
</pre>
</dd>
Expand All @@ -782,6 +784,7 @@ <h4>The <code>&lt;<dfn id="the-layer-element">layer</dfn>&gt;</code> element</h4
remove the <a href="#the-layer-element"><code>layer</code></a> from the map display, it can have its <a href="#attr-layer-checked"><code>checked</code></a> property toggled, or be removed from the DOM.</p>
<p>The <a href="#attr-layer-disabled"><code>disabled</code></a> property is a read-only boolean indicator of the visibility of the layer on the map. If the layer is not visible due to errors, including projection,
zoom or extent mismatch, the property will be true and if the layer is present in the layer control (i.e. <a href="#attr-layer-hidden"><code>hidden</code></a> is false), it will be disabled in that control i.e. not checkable.</p>
<p>The location and zoom level of the map can be changed via the <a href="#dom-htmllayerelement-zoomto"><code>layer</code>.<code>zoomTo()</code></a> API method.</p>

</section>
<section>
Expand Down

0 comments on commit 675a174

Please sign in to comment.