From bfa536be6a61e9c5fab7ad2b6b81ddfccd493154 Mon Sep 17 00:00:00 2001 From: Aliyan Haq <55751566+AliyanH@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:48:54 -0500 Subject: [PATCH] remove setter for map-extent units attribute --- src/map-extent.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/map-extent.js b/src/map-extent.js index 2fbacd51a..1bde6a396 100644 --- a/src/map-extent.js +++ b/src/map-extent.js @@ -1,18 +1,12 @@ /* global M */ export class MapExtent extends HTMLElement { static get observedAttributes() { - return ['units', 'checked', 'label', 'opacity', 'hidden']; + return ['checked', 'label', 'opacity', 'hidden']; } get units() { return this.getAttribute('units'); } - set units(val) { - // built in support for OSMTILE, CBMTILE, WGS84 and APSTILE - if (['OSMTILE', 'CBMTILE', 'WGS84', 'APSTILE'].includes(val)) { - this.setAttribute('units', val); - } - // else need to check with the mapml-viewer element if the custom projection is defined - } + get checked() { return this.hasAttribute('checked'); }