I’ve set up a query to select a number of features based on their attributes and have set the triggers to ‘Show on map’ and ‘Zoom to’ for ‘Records created’ and ‘Flash’ and ‘Zoom to’ for ‘Record selection changes’, but these aren’t working as expected. When I click on the selected record in the filmstrip created by the query, I expect it to zoom to that feature, but it doesn’t.
Also, although I’ve changed the settings in ‘Map – Options’ there is no highlight around the feature, again as there used to be in WAB.
Am I doing something wrong?
I'm working in EB in AGOL.
Ta
Solved! Go to Solution.
Hi folks,
I talked to some colleagues at work and they suggested a number of things, the key one being that although I have multiple results I need to set the zoom to 'Single' as otherwise it's trying to zoom to all the selected features. It now works and even the highlight has appeared 😊; I guess that must have been a delayed effect?
Anyway, thanks to everyone for their help.
I can confirm that it does work. Can you confirm what you have selected for trigger data? if it is customized data you need to ensure that all of your layers are selected.
Maybe the zoom scale isn't working for what you need. Have you tried custom zoom scales to see if that makes any difference?
Unfortunately for flash in my case I had to add it in for each layer because I wanted the query to select a different layer on my map to flash so I had to set up my trigger and action data for each one.
Hi laura,
Thanks for that. These are my settings, which seem to be the same as yours, except for the scale, which I'd set to 1:5000 previously.
The first zoom works fine, but after that it goes to random points.
There is never any secondary highlighting for the specific feature, rather than the whole selection.
I'm happy to share the whole app, if you think that would be useful?
As far as this goes: Also, although I’ve changed the settings in ‘Map – Options’ there is no highlight around the feature, again as there used to be in WAB.
I'm wondering if you went into add action - framework - selection data records if it would then work for you because based on your screenshot i don't see that in your message action.
What do you mean by first zoom? If the query comes up with say 2 results when you click on the first one everything is fine but when you click on the second it doesn't work? Are you allowing single or multiple in the results select mode?
Hi Laura,
I'm afraid I don't fully understand what the various options within 'Framework' do.
As for the second question, yes. Queries generally pull up between 20 - 100 images which I have in a filmstrip, so these are 'multiple'. Clicking on the first one works, but after that it becomes random.
Hi Laura,
I've tried to replicate this, although I'm not entirely sure what I'm doing.
However, it doesn't seem to have had any effect and the zoom still fails.
Am I doing something wrong?
Hi folks,
I talked to some colleagues at work and they suggested a number of things, the key one being that although I have multiple results I need to set the zoom to 'Single' as otherwise it's trying to zoom to all the selected features. It now works and even the highlight has appeared 😊; I guess that must have been a delayed effect?
Anyway, thanks to everyone for their help.
Yup that's why I asked if your selection was set to multiple and what I meant when I said it will zoom out to all selected aka so they can all be viewed.