Select to view content in your preferred language

Why point features in a query zoom to location, but polygon features don't?

449
6
02-20-2025 09:15 AM
SimonCrutchley
Frequent Contributor

This is sort of a continuation of this thread (https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-get-a-query-result-to-symbol...), so I'm hoping to get an answer. When I run a query on the two layers within my app, I get different responses in the results. In both cases I've set up so that the results show results using the webmap settings, which results in a filmstrip with a thumbnail image and some text. If I click inside any example of one of my point feature results, the map zooms to that location. However, if I try to do the same for the polygon features nothing happens. I can't use the 'Data Actions' option, which might allow this, because it enables Export of data (even when this is unticked) and I cannot allow this.

People were very helpful getting me to be able to change the query result appearance, so I'm hoping you might have an answer here.

Thanks

0 Kudos
6 Replies
Laura
by MVP Regular Contributor
MVP Regular Contributor

I can easily zoom to a result from a query on a polygon feature. There's no need to use the data action; instead, you should use the message action. When the record selection changes, it will automatically zoom to the selected feature when you select that option. 

Laura_0-1740072474931.png

 

0 Kudos
SimonCrutchley
Frequent Contributor

Unfortunately, that's what I've already got, and it works fine for the points (obliques), just not the polygons (verticals).

SimonCrutchley_0-1740072719101.png

Any thoughts?

 

0 Kudos
Laura
by MVP Regular Contributor
MVP Regular Contributor

Have you tried a separate query widget with those configurations for just the polygon layer to see if a configuration issue or something else?

When you click on map, zoom to does the trigger data have all data selected?

Laura_0-1740073097007.png

 

0 Kudos
SimonCrutchley
Frequent Contributor

No, I hadn't thought of that. I'll give that a go tomorrow as it's home time here in the UK.

Thanks

0 Kudos
SimonCrutchley
Frequent Contributor

Okay... I tried setting the verticals as a new query and it worked fine. I then added the obliques and hey presto, that didn't. This suggests that the zoom functionality only works for the first element in the query.

I guess I can do a workaround by creating a button with the two queries in it, so it looks seamless to a user, but it seems rather odd and annoying.

0 Kudos
Laura
by MVP Regular Contributor
MVP Regular Contributor

I can get it to work with both point and polygons within the same query widget though. Definitely weird behavior. 

0 Kudos