Select to view content in your preferred language

Can you set scale levels for scroll zooming?

413
3
04-04-2024 01:44 PM
Labels (1)
MattCashen
Regular Contributor

Is there any way to control what scale levels the scroll zooming uses?  Using the url parameters I've noticed that the scroll zooming function zooms at scale levels that don't correspond to the AGO tiling scheme.  This is problematic for me as the map I'm using has a lot of tiled layers that I have created using the AGO tiling scheme.  So now when you use the scroll zooming some of the labeling on these layers appears blurry because they weren't cached for the scale levels being used by the scroll zooming.  If I use the built in zoom tool that comes with the map widget this zooms at the AGO tile levels.  But turning off scroll zooming isn't really an option as the vast majority of people who open an online map will be expecting the ability to use their mouse to zoom.

3 Replies
Marshal
Frequent Contributor

This seems like an Experience Builder bug to me.  Mouse scroll zoom worked correctly in ExB Dev 1.11, but after upgrading to 1.14 the mouse scroll does not match AGO tiling scheme scales as you mentioned.  Similarly, the built-in Experience Builder in ArcGIS Enterprise 11.3 has the same issue.  This causes display issues with cached map services, as you also mentioned.

I've been working with support to confirm if this is a bug and will update once I have more information.

Your post helped me figure out that the Map Widget zoom tool (+ / - buttons) steps through the AGO tiling scheme scales correctly despite the mouse scroll zoom not working, so thank you!

MattCashen
Regular Contributor

Glad I was able to help in some small way.  I did find a workaround for controlling how far in and out the user can zoom.  If you create your own basemap with your own tiling scheme and use that as the basemap for the map being used in EB it will not zoom in or out beyond the tiling scheme levels you set.  This still doesn't do anything in regards to the mouse zoom scrolling but now at least my users can't go in past the cache levels I have set. 

Marshal
Frequent Contributor

Support confirmed this is a bug and is now under review.  I assume we won't see a fix until at least ExB Developer Edition 1.16, or ArcGIS Enterprise 11.4 which is likely months away, but maybe ESRI will surprise us!

Update: Link to bug report

https://support.esri.com/en-us/bug/in-arcgis-experience-builder-there-is-a-discrepancy-in-bug-000169...