Disable scroll-zooming on the view

This device does not support 3D.

View the system requirements for more information.

This sample demonstrates how to disable scroll zooming on a MapView instance. Scroll zooming is enabled by default via the mouse-wheel event of the view.

To disable scroll zooming, you must call the stopPropagation() method on the event object of the mouse-wheel event.

view.on("mouse-wheel", function(evt){
  // prevents zooming with the mouse-wheel event
  evt.stopPropagation();
});

Try zooming the view by scrolling the mouse-wheel.

Sample search results

TitleSample

There were no match results from your search criteria.