summaryrefslogtreecommitdiff
path: root/src/Map/Layer.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Map/Layer.js')
-rw-r--r--src/Map/Layer.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Map/Layer.js b/src/Map/Layer.js
index 1f486ad..38037f5 100644
--- a/src/Map/Layer.js
+++ b/src/Map/Layer.js
@@ -130,9 +130,7 @@ class LayerData {
class LayerView {
- constructor(parentId) {
- const parentElement = document.getElementById(parentId);
-
+ constructor(parentElement) {
const button = (label, f) => {
const b = h('button', label, { 'style': 'margin: 0 5px' });
b.onclick = f;
@@ -141,8 +139,7 @@ class LayerView {
this.layersList = h('ul');
- const root = h('fieldset', { 'class': 'layer-view' }, [
- h('legend', 'Layers'),
+ const root = h('div', { 'class': 'layer-view' }, [
this.layersList,
button('Move Up', () => this.onMoveUp(this._getIdChain())),
button('Move Down', () => this.onMoveDown(this._getIdChain())),