Skip to content

Commit 0d77803

Browse files
committed
Update window.MapML namespace to contain HTMLMapElement, HTMLAreaElement
interfaces, since they won't clash with window.HTMLMap/AreaElement
1 parent c026b91 commit 0d77803

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/mapml/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ import { HTMLInputElement } from '../mapml-viewer';
5454
import { HTMLSelectElement } from '../mapml-viewer';
5555
import { HTMLLinkElement } from '../mapml-viewer';
5656
import { HTMLStyleElement } from '../mapml-viewer';
57-
import { HTMLWebMapElement } from '../mapml-viewer';
58-
import { HTMLMapAreaElement } from '../mapml-viewer';
57+
import { HTMLWebMapElement as HTMLMapElement } from '../mapml-viewer';
58+
import { HTMLMapAreaElement as HTMLAreaElement } from '../mapml-viewer';
5959

6060
window.MapML = {
6161
HTMLMapmlViewerElement,
@@ -67,6 +67,6 @@ window.MapML = {
6767
HTMLSelectElement,
6868
HTMLLinkElement,
6969
HTMLStyleElement,
70-
HTMLWebMapElement,
71-
HTMLMapAreaElement
70+
HTMLMapElement,
71+
HTMLAreaElement
7272
};

src/web-map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ export class HTMLWebMapElement extends HTMLMapElement {
685685
this.addEventListener(
686686
'change',
687687
function (e) {
688-
if (e.target.tagName === 'map-layer') {
688+
if (e.target.tagName === 'MAP-LAYER') {
689689
this.dispatchEvent(
690690
new CustomEvent('layerchange', {
691691
details: { target: this, originalEvent: e }

0 commit comments

Comments
 (0)