How to set the zoom of a map / floor plan using a button

Q&A about the latest versions
Post Reply
zeus360
Posts: 23
Joined: Thu Nov 08, 2018 1:30 pm

I'm working on a tour which has three floor plan images. There is only a single node on the second floor. I have some buttons which have the action of selecting the floor plan image when clicked.

The issue I have is that when you select either the first floor or the second floor, the map appears to be blank if you are in a spot on the ground floor which has nothing above it. So I have also added a zoom to bounds action to the floor select buttons. This works great for the ground and first floor as there are plenty of nodes. When selecting the second floor though, it's way too zoomed in because there is only one node on the second floor.

Is there a way of having a different action which sets the zoom to a set value and centring the map?
Post Reply