Skip to content

Commit 675a174

Browse files
committed
Add the layer.zoomTo() WebIDL method
1 parent f406573 commit 675a174

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

spec/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ <h3>Changes</h3>
364364
<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>
365365
<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>
366366
<li><time>2023-02-24</time>: Remove <code>datalist</code> element and associated input <code>shard</code> and <code>list</code> attributes.
367+
<li><time>2023-03-13</time>: Add <code>layer.zoomTo()</code> method.
367368
</ol>
368369
</details>
369370
</section>
@@ -764,6 +765,7 @@ <h4>The <code>&lt;<dfn id="the-layer-element">layer</dfn>&gt;</code> element</h4
764765
attribute boolean <a href="#attr-layer-hidden">hidden</a>;
765766
attribute DOMString <a href="#attr-layer-referrerpolicy">referrerPolicy</a>;
766767
attribute DOMString? <a href="#attr-layer-crossorigin">crossOrigin</a>;
768+
undefined zoomTo();
767769
};
768770
</pre>
769771
</dd>
@@ -782,6 +784,7 @@ <h4>The <code>&lt;<dfn id="the-layer-element">layer</dfn>&gt;</code> element</h4
782784
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>
783785
<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,
784786
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>
787+
<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>
785788

786789
</section>
787790
<section>

0 commit comments

Comments
 (0)