Select to view content in your preferred language

How to control the zoom rate for mouse-wheel? mouse-wheel zooming in and zooming out seem to be zoomed too big or too quick

247
4
4 weeks ago
TedZhou
Occasional Contributor

Our customers complain the mouse-wheel zooming in or zooming out the map view too big or too fast. 

 

Not sure how to control the zoom rate for the mouse wheel or even the zoom widget which hardcoded 2 or 0.5 zoom rate probably. 

 

Not sure the layer's zoom scale will matter or not. I did see any effects on the zoom rate. 

 

Esri Config probably have some configurations to control how fast the mouse-wheel zoom in or zoom out, but I have not seen those settings. 

 

Massive thanks for your kind tips.

 

 

4 Replies
RandyMcGregor_BMcD
Frequent Contributor

I agree this is a problem. I fear this is 'as designed,' but would love to be wrong about that.

0 Kudos
JeffreyThompson2
MVP Regular Contributor

The zooming is designed so that one tick of the mouse wheel equals a change of one Level of Detail (LOD). The LODs are a property of the Basemap. It is technically possible to create a custom Basemap with closer together LODs.

GIS Developer
City of Arlington, Texas
MarkBockenhauer
Esri Regular Contributor

Another thing to look at is the mouse settings.  I have noticed when 'smooth scrolling' (depending on mouse type) is on, the zooming in Map viewer is difficult to control.

0 Kudos
TedZhou
Occasional Contributor

I saw those settings for old ArcGis as below:

esri.config.defaults.map.zoomDuration = 250; //time in milliseconds; default is 250
esri.config.defaults.map.zoomRate = 25; //refresh rate of zoom animation; default is 25

esri/config | API Reference | ArcGIS API for JavaScript 3.46 | ArcGIS Developer

But I did not see relevant information within config class of latest ArcGIS Maps SDK for JavaScript (4.31)  yet

config | API Reference | ArcGIS Maps SDK for JavaScript 4.31 | Esri Developer

 

I will continue to dig in ...

I reckon ArcGIS team may have moved those control settings to other places?

 

ArcGIS team may have some good tricks to properly configuring zoom scales?

 

Thanks for all of your kind assistance, advice and tips ...

 

 

 

0 Kudos