--
You received this message because you are subscribed to the Google Groups "marzipano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marzipano+unsubscribe@googlegroups.com.
To post to this group, send email to marz...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/marzipano/b611f385-6540-4ea5-b17a-0bebe79b6cd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Steve,The easiest way to do this in a tour created with the tool is probably inside the `switchScene` function. Inside the function you can check which scene is being loaded and do whatever you need to change the map.All the best,Manuel
On Wed, Jan 4, 2017 at 12:09 PM, Steve Johnson <stev...@gmail.com> wrote:
Hi all,Just came across Marzipano today and seems like a great toolI've started setting up a project and had a question. I have an area with panoramas from several locations that I've loaded up through the Marzipano tool and I want to add in a small map inset that has the location highlighted when your at that particular location. I used the example I saw on here for adding in a logo, which works great, I just need to know how I would essentially add a different logo per panorama in my scene (which would be the same map image, just the new spot with a highlight)thanks!Steve J
--
You received this message because you are subscribed to the Google Groups "marzipano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marzipano+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to marzipano+unsubscribe@googlegroups.com.
To post to this group, send email to marz...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/marzipano/87c62b8b-65e9-41fb-9954-fc9a43e95d73%40googlegroups.com.
<img id="imgDisp" src="img/0.png"></img> img#imgDisp {position: absolute; right:5px; top:40px} changeMap(scene); function call to the switchScene(scene) function function changeMap(imgName) {
mapImage = document.getElementById(imgDisp);
mapImage.src = "img/" + imgName + ".png";
}Enter code here...
To unsubscribe from this group and stop receiving emails from it, send an email to marzipano+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/marzipano/569c5205-934a-465d-b9d7-7f90eefd8477%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to marzipano+unsubscribe@googlegroups.com.
To post to this group, send email to marz...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/marzipano/02c50dc0-a862-492d-8a45-56ea921bf315%40googlegroups.com.
var mapImage = document.getElementById('imgDisp');
for (var SceneIndex=0; SceneIndex <scenes.length; SceneIndex++) {
console.log(scenes[SceneIndex].data.id);
mapImage.src = "img/" + scenes[SceneIndex].data.id + ".png";
}
Map enable/disable:
var mapToggleElement = document.querySelector('#imgDisp');
mapToggleElement.addEventListener('click', toggleMap);
function toggleMap() {
if (map == 1) { // Minimize map
map = 0;
mapToggleElement.width=50;
mapToggleElement.heigth=50;
} else { // Maximize map
map = 1;
mapToggleElement.width=500;
mapToggleElement.heigth=500;
}
}