I am building a Nearby Instant App for public use and discovered a recent issue that is fairly urgent. I would appreciate any assistance by Esri or others who can advise.
It seems for point layers specifically (both AGOL hosted and Portal services), when you click zoom, it doesn't zoom in to the visible extent of the layer. It stays at the extent specified by the slider, and makes it unusable and not helpful for that layer specifically if not visible at that scale. Polygon layers have no issue and zoom properly all the way to the polygon.
Also I believe this was not issue about a week ago, so I'm not sure what caused it. I'm unaware if it's a setting issue, but currently I just have results turned on with layer effects. One observation is that if I turn on the setting where the pop-up shows when zooming to feature, it zooms properly; however, we don't want the pop-up to show up in the map for accessibility reasons, so this is not an ideal solution.
Any insight appreciated on what might be causing this - thank you!
Solved! Go to Solution.
@Tiff if you can log an issue via Esri support we can work on a fix for the next release of Online (due around the User Conference). In the meantime can you try this approach:
1. Enable the 'Enable pop-up on zoom' option in the configuration panel
2. Hide the popup that appears on the map using this CSS.
.esri-popup__main-container.esri-widget{
display:none;}
Let me know if that doesn't address the issue for you
@Tiff if it was working a week ago it is most likely a setting change. Have you made any configuration changes in the last week or so?
Hi @KellyHutchins I tried reverting the only setting that changed, which was "layer effects" to no avail. I think it's possible the issue may have always been there. Today I believe may have been my first time extending the slider to past 1 mi (anything above 2 mi or so zooms out past the layer visibility scale) and then zooming did not work. Also, the point layer was most recently added and it is an important, but the only, point layer we have in the map.
@Tiff if you can log an issue via Esri support we can work on a fix for the next release of Online (due around the User Conference). In the meantime can you try this approach:
1. Enable the 'Enable pop-up on zoom' option in the configuration panel
2. Hide the popup that appears on the map using this CSS.
.esri-popup__main-container.esri-widget{
display:none;}
Let me know if that doesn't address the issue for you
Hi @KellyHutchins! Thank you for the solution. I will certainly get a case submitted.
This resolved it, to an extent. I noticed with the "enable pop-up on zoom" for point layers, clicking it once takes you to a reasonable zoom where you can see surrounding context, but clicking the zoom button again (multiple times) continues to zoom in further. The default behavior only zooms to its extent once, rather than zooming in again. Can we have it function like the default behavior?
@Tiff unfortunately its not possible to update that behavior outside the release cycle. So a fix will have to wait for the next Online release. The issue is that when the popup option is enabled it is using the popup zoom behavior which will continue to zoom in when clicked.
Another alternative is to disable the popup option and enable search scale and set a search scale to use to zoom to. However in that case it'll zoom to the same scale for points, lines, polys etc so you might end up zoomed in too far for other features.
Hi @KellyHutchins, thanks for the information. When you say "enable search scale" do you mean the "Set scale level" setting in the Search method section? If so, unfortunately that may not be a viable option for us because it sets the scale after searching, as opposed to after zooming, which makes it difficult to accommodate our range of 0-5 miles.
Is there a way to set the scale for the zoom button - like you are proposing above? It may be difficult to find a perfect middle, but I can try if that setting is available.