Skip to content

Commit 7871fd4

Browse files
authored
remove setter for map-extent units attribute (#908)
1 parent b5381b5 commit 7871fd4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/map-extent.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
/* global M */
22
export class MapExtent extends HTMLElement {
33
static get observedAttributes() {
4-
return ['units', 'checked', 'label', 'opacity', 'hidden'];
4+
return ['checked', 'label', 'opacity', 'hidden'];
55
}
66
get units() {
77
return this.getAttribute('units');
88
}
9-
set units(val) {
10-
// built in support for OSMTILE, CBMTILE, WGS84 and APSTILE
11-
if (['OSMTILE', 'CBMTILE', 'WGS84', 'APSTILE'].includes(val)) {
12-
this.setAttribute('units', val);
13-
}
14-
// else need to check with the mapml-viewer element if the custom projection is defined
15-
}
9+
1610
get checked() {
1711
return this.hasAttribute('checked');
1812
}

0 commit comments

Comments
 (0)