Skip to content

Commit

Permalink
rename componentLegend2 to componentLegendGlobe in map functions and …
Browse files Browse the repository at this point in the history
…HTML template
  • Loading branch information
edwardchalstrey1 committed Dec 18, 2024
1 parent b2741fe commit 909353b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions seshat/apps/core/static/core/js/map_functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function switchBaseMap() {

if (legendDiv === null) {
if (selectedMap === 'cesium') {
legendDiv = document.getElementById('componentLegend2');
legendDiv = document.getElementById('componentLegendGlobe');
} else {
legendDiv = document.getElementById('componentLegend');
}
Expand Down Expand Up @@ -518,7 +518,7 @@ function updateLegend() {
function updateComponentLegend() {

var legendDiv = document.getElementById('componentLegend');
var legendDiv2 = document.getElementById('componentLegend2');
var legendDiv2 = document.getElementById('componentLegendGlobe');
var displayComponent = document.getElementById('switchPolitiesComponents').value;
var selectedYearInteger = parseInt(document.getElementById('dateSlide').value);
// Create a container for polity items
Expand Down
4 changes: 2 additions & 2 deletions seshat/apps/core/templates/core/polity_map.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
overflow-y: auto;
z-index: 999;
}
#componentLegend2 {
#componentLegendGlobe {
position: absolute;
top: 50%;
left: 1%;
Expand Down Expand Up @@ -232,7 +232,7 @@ <h2 class="h2 text-dark federicka-medium">
</div>
<div id="globeParent">
<div id="globe"></div>
<div id="componentLegend2"></div>
<div id="componentLegendGlobe"></div>
</div>
</div>
</div>
Expand Down

0 comments on commit 909353b

Please sign in to comment.