MORE THAN 2 SELECTED STATES (Order of Triggers or Variable route or other?)

Feb 02, 2023

I have an interaction that is clickable to select pins on a map. The pins are set with two states (first choice, second choice). I am trying to contrive a 'simple' way to make the user click once for a 'selected' state or a 'custom state 1', and then a second click on the pin will change the state again to 'custom state 2'. A third click should then result in changing the state back to Normal.

The only solution I came up with was to create a #Var per pin I have on the map and increment the var per click up to 2, and reset to 0 when over 2. The state changes were 3 triggers upon change of that var at specific numerical values. I can do this, but with 30 pins of my map, I am looking at 150 triggers. Is this the simplest way?

 

1 Reply
Walt Hamilton

You have hit on what is probably the easiest method, but there is an easier workflow than you described.

One possibility is to create one pin, its states, and its triggers. Copy, or better yet, duplicate it and move it to a new spot. The triggers will move with it.

If the pins are already created, you can use the states paintbrush. It might add the states to new pins. Copy the triggers, select a new pin, and paste the triggers. References to the pin will be updated to refer to the selected pin.

If all the pins, or states, or triggers are unique or distinct, of course, these ideas won’t help. If they are the same, none of it should take long.