Skip to content

Commit

Permalink
UI message for ShadeTool when required Time is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Feb 12, 2025
1 parent 367b0d8 commit 24e9ef5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/essence/Tools/Shade/ShadeTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -1800,6 +1800,16 @@ function interfaceWithMMGIS() {

if (TimeControl.enabled != true) {
console.error('ERROR: ShadeTool - Time must be enabled.')
let tools = d3.select('#toolPanel')
//Clear it
tools.selectAll('*').remove()
//Add a semantic container
tools = tools.append('div').style('height', '100%')
//Add the markup to tools or do it manually
tools.html(
`<div style="position: absolute; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); text-align: center; color: var(--color-h);">The Shade Tool requires that Time be enabled by the administrators.</div>`
)

return
}

Expand Down

0 comments on commit 24e9ef5

Please sign in to comment.