Turn on Layer Being Queried and Filtered
PlannedThe Query and Filter tools in VSW should automatically turn on the layer being queried filtered so that results always appear on the map. There should also be a setting that gives administrators the option to toggle this behaviour; I think it should be enabled by default.
I found that the query works great, but if the layer is checked off, the results are invisible. The query returns results in the results list, but you can’t view them on a map when clicking through the returned results if the layer is off. This will undoubtedly confuse users.
I understand and agree with the rational for allowing queries on layers that are turned off due to non-spatial tables (after all, since they're non-spatial they can't be mapped anyway!), but I would argue that it’s best to make sure that spatial layers are always turned on automatically as part of a query operation. The current behaviour is not intuitive as the map zooms to the location when clicking on a result from the query, but the user can’t see anything if the layer is off.
Since the query is already checking the data source from the loaded layers on the map, I think this would be an easy implementation with a few if statements like this pseudo code:
Check layer geometry,
If data is non spatial:
Do nothing
Check if layer is on,
If layer is already turned on:
Do nothing
If the layer is not turned on:
Turn on layer
-
I'll put some thought into the timing and location of this. Might take a while to get to.
0 -
This would be useful
0 -
Is there any news? It has a status of planned
0
Please sign in to leave a comment.
Comments
3 comments