WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 82ec09e

Browse files
remove clear selection button from legend
1 parent b828e36 commit 82ec09e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

seshat/apps/core/static/core/js/map_functions.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -428,14 +428,6 @@ function updateLegend() {
428428
// Add a legend for highlighted polities
429429
if (addedPolities.length > 0) {
430430

431-
if (baseMap != 'cesium') {
432-
// Add clear selection button
433-
var clearSelectionButton = document.createElement('button');
434-
clearSelectionButton.textContent = 'Clear selection';
435-
clearSelectionButton.onclick = clearSelection;
436-
legendDiv.appendChild(clearSelectionButton);
437-
}
438-
439431
var legendTitle = document.createElement('h3');
440432
legendDiv.appendChild(legendTitle);
441433
// Create a container for polity items

0 commit comments

Comments
 (0)