Commit bdf39f7 1 parent 5e8f302 commit bdf39f7 Copy full SHA for bdf39f7
File tree 1 file changed +3
-4
lines changed
seshat/apps/core/templates/core
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ <h3>Base Map</h3>
191
191
</ div >
192
192
< div style ="position: relative; height: 85vh; width: 80% ">
193
193
< div id ="map " style ="height: 100%; width: 100%; z-index: 0; "> </ div >
194
- < div id ="sliderdiv " style ="display: block; position: absolute; bottom: 4.5vh; width: 100%; z-index: 2; display: none; ">
194
+ < div id ="sliderdiv " style ="display: block; position: absolute; bottom: 4.5vh; width: 100%; z-index: 2 ">
195
195
< fieldset >
196
196
< div class ="slider-container " style ="position: relative; ">
197
197
< datalist id ="yearTickmarks "> </ datalist >
@@ -325,14 +325,13 @@ <h3>Base Map</h3>
325
325
document . getElementById ( 'dateSlide' ) . max = data . latest_year ;
326
326
allPolitiesLoaded = true ;
327
327
tick_years = JSON . parse ( data . tick_years ) ;
328
+ setSliderTicks ( tick_years ) ;
329
+ document . getElementById ( 'loadingIndicator' ) . style . display = 'none' ;
328
330
329
331
return fetch ( '/core/provinces_and_countries' ) ;
330
332
} )
331
333
. then ( response => response . json ( ) )
332
334
. then ( data => {
333
- setSliderTicks ( tick_years ) ;
334
- document . getElementById ( 'sliderdiv' ) . style . display = 'block' ;
335
- document . getElementById ( 'loadingIndicator' ) . style . display = 'none' ;
336
335
provinceShapeData = data . provinces . map ( function ( shape ) {
337
336
return {
338
337
geometry : JSON . parse ( shape . aggregated_geometry ) ,
You can’t perform that action at this time.
0 commit comments