Hi,
I've spent several hours investigating the implementation of Hotspot Styles for use with Marzipano Tool generated tours. I've downloaded all the sample demo files and I'm comfortable using them with a single multi-resolution panorama but I'm struggling to integrate them into a multi-panorama tour.
In the demo the hotspot holders are defined by divs in the index.html file
<link rel="stylesheet" href="css/expand.css">
<div id="expand">
<h1 class="title">Human</h1>
<img class="icon" src="img/human.png" >
<p> (Homo sapiens primarily ssp. Homo sapiens sapiens)</p>
</div>
<script src="js/expand.js"></script>
that reference a particular .css file e.g. expand.css
#expand {
width: 70px;
height: 70px;
margin-left: -35px;
margin-top: -70px;
background-color: #fff;
color: #000;
border-radius: 50%;
text-align: center;
cursor: pointer;
transition: width .3s ease-in-out,
height .3s ease-in-out,
background-color .3s ease-in-out,
color .3s ease-in-out,
margin .3s ease-in-out;
}....
and .js file, eg. expand.js
scene.hotspotContainer().createHotspot(document.querySelector("#expand"), { yaw: 0.525, pitch: 0 });
While in tool generated tours the hotspots are created in index.js file
function createInfoHotspotElement(hotspot)
defined in the data.js file
"infoHotspots": [
{
"yaw": 0.6275712006455834,
"pitch": -0.23396993647934394,
"title": "Caldera View",
"text": "One of the most beautiful views in Yankicha has to be looking down at the caldera from one of the steep hills surrounding it. From the caldera's hillside you can just see the passengers preparing to return to the PONANT ship Le Soléal after exploring the island."
}
and built in the styles.css file
/* Info hotspot */
.info-hotspot {
line-height: 1.2em;
opacity: 0.9;
transition: opacity 0.2s 0.2s;
}
Can you give me any hints on how to merge the single panorama code into the tool generated code?
regards,
Tony