Skip to content

Commit

Permalink
DBApp icon added to map
Browse files Browse the repository at this point in the history
Now you can go to the DBApp with the icon.
  • Loading branch information
gorkemkurban committed Nov 18, 2024
1 parent c285f5e commit fb5b17b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Apps/3DHeritageMapApp.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ <h2>Options</h2>
<!-- Button to open options box -->
<button id="openOptionsBox"><img src="Images/menu.png" alt="menuicon"></button>

<a href="../DBApp/dbapp.html"><button id="dataBaseButton"><img src="Images/database.png" alt="dataBaseIcon"></button></a>

<!-- Cesium Container -->
<div id="cesiumContainer"></div>

Expand Down
6 changes: 6 additions & 0 deletions Apps/3DHeritageScripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,18 @@ document.getElementById('openInfoBox').onclick = () => {
document.getElementById('closeOptionsBox').onclick = () => {
document.getElementById('optionsBox').style.display = 'none';
document.getElementById('openOptionsBox').style.display = 'block';

// Show the dataBaseButton when infoBox is closed
document.getElementById('dataBaseButton').style.display = 'block';
};

// Add event listener for the open options box button
document.getElementById('openOptionsBox').onclick = () => {
document.getElementById('optionsBox').style.display = 'block';
document.getElementById('openOptionsBox').style.display = 'none';

// Hide the dataBaseButton when infoBox is opened
document.getElementById('dataBaseButton').style.display = 'none';
};


Expand Down
22 changes: 22 additions & 0 deletions Apps/3DHeritageStyles.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,28 @@
margin-bottom: 10px;
}

#dataBaseButton {
position: absolute;
top: 60px;
left: 10px;
cursor: pointer;
background-color: rgba(42, 42, 42, 0.8);
border: none;
color: white;
border-radius: 4px;
padding: 5px 5px;
z-index: 1;
}

#dataBaseButton:hover {
background-color: rgb(37, 150, 190);
border-style: solid;
border: 2px;
border-color: white;
}



#infoBox {
position: absolute;
top: 50px;
Expand Down
Binary file added Apps/Images/database.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fb5b17b

Please sign in to comment.