Skip to content

Commit

Permalink
Update window.MapML namespace to contain HTMLMapElement, HTMLAreaElement
Browse files Browse the repository at this point in the history
interfaces, since they won't clash with window.HTMLMap/AreaElement
  • Loading branch information
prushforth committed Oct 21, 2024
1 parent c026b91 commit 0d77803
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/mapml/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ import { HTMLInputElement } from '../mapml-viewer';
import { HTMLSelectElement } from '../mapml-viewer';
import { HTMLLinkElement } from '../mapml-viewer';
import { HTMLStyleElement } from '../mapml-viewer';
import { HTMLWebMapElement } from '../mapml-viewer';
import { HTMLMapAreaElement } from '../mapml-viewer';
import { HTMLWebMapElement as HTMLMapElement } from '../mapml-viewer';
import { HTMLMapAreaElement as HTMLAreaElement } from '../mapml-viewer';

window.MapML = {
HTMLMapmlViewerElement,
Expand All @@ -67,6 +67,6 @@ window.MapML = {
HTMLSelectElement,
HTMLLinkElement,
HTMLStyleElement,
HTMLWebMapElement,
HTMLMapAreaElement
HTMLMapElement,
HTMLAreaElement
};
2 changes: 1 addition & 1 deletion src/web-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ export class HTMLWebMapElement extends HTMLMapElement {
this.addEventListener(
'change',
function (e) {
if (e.target.tagName === 'map-layer') {
if (e.target.tagName === 'MAP-LAYER') {
this.dispatchEvent(
new CustomEvent('layerchange', {
details: { target: this, originalEvent: e }
Expand Down

0 comments on commit 0d77803

Please sign in to comment.