soiz1 commited on
Commit
9d5e934
·
verified ·
1 Parent(s): e968604

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +9 -0
index.html CHANGED
@@ -1443,6 +1443,15 @@ function addBaseLayer() {
1443
  hideLayerEditor();
1444
  }
1445
  }
 
 
 
 
 
 
 
 
 
1446
 
1447
  // オーバーレイレイヤー追加をキャンセル
1448
  function cancelOverlayLayer() {
 
1443
  hideLayerEditor();
1444
  }
1445
  }
1446
+ // レイヤーエディタを非表示
1447
+ function hideLayerEditor() {
1448
+ document.getElementById("layer-editor").style.display = "none";
1449
+ if (currentEditingLayer) {
1450
+ map.removeLayer(currentEditingLayer);
1451
+ currentEditingLayer = null;
1452
+ overlayCoords = [];
1453
+ }
1454
+ }
1455
 
1456
  // オーバーレイレイヤー追加をキャンセル
1457
  function cancelOverlayLayer() {