Forum Discussion
Same Hotspot for hover and click trigger
Hello,
I would like to create a map showing municipalities. Clicking on a municipality should then display a local contact person with contact details (slide level).
Alternatively, there should be a preview as soon as the user hovers over the municipality with the mouse. This preview should disappear again as soon as the mouse is no longer hovering over the municipality.
I can get the triggers to work individually, but as soon as I link both to the same hotspot, only one of the two triggers works. But I would like to give the user the option to either hover over it for a preview or to click on it.
Can you help?
2 Replies
- KendalRasnake-1Community Member
Hello,
You might try using the states of the shapes instead of hotspots. Then you can access the built in Hover and Selected states that are possible for shapes. The graphic you are using may not be broken up into individual shapes, but that should be able to be accomplished in Photoshop or other graphics software.
If you can access the individual shapes for the municipalities, you could do this:
- Add a Hover and Selected state to the municipality shape, let's call it "Municipality 1," and modify them as desired.
- Create a text box, button etc., with the correct corresponding information to the shape.
- Duplicate the text box state to create an additional state, let's call it "Municipality 1-Hover." Add information here that you want the user to see on hover.
- Duplicate the text box state to create an additional state, let's call it "Municipality 1-Selected." Add information here that you want the user to see on clicking the shape or its selected state.
- Go back to the Normal state of the text box and delete the text so that it is blank.
- Create a trigger that says "Set state of Text Box to Municipality 1-Hover, when the state of Municipality 1 (shape) is Hover"
- Create a trigger that says "Set state of Text Box to Municipality 2-Selected, when the state of Municipality 1 (shape) is Selected"
- Create a trigger that says "Set state of Text Box to Normal, when the state of Municipality 1 (shape) is Normal"
This allows the information to pop up on the screen upon hovering, and then stay on the screen when the user clicks and it is selected.
I've attached a sample, working Storyline project.
- PhilippPichlerCommunity Member
Thanks so much for the effort! This is definitely a way to do it. I hoped to avoid breaking up the map into individual shapes 😅
Related Content
- 8 months ago
- 3 months ago
- 10 years ago