This is a migrated thread and some comments may be shown as answers.

Disable Mouse Scroll / Zoom

1 Answer 166 Views
Map
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 05 Feb 2014, 09:02 PM
Is there a way to disable map zooming when the mouse is scrolled?

Thanks!
Sean

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 07 Feb 2014, 11:09 AM
Hello Sean,

In order to achieve this you could prevent the zoomStart event:
$("#map").kendoMap({
  //....
  zoomStart: onZoomStart
});
 
function onZoomStart(e) {
  e.preventDefault();
}
Another option is to set equal values to the minZoom and maxZoom options:
$("#map").kendoMap({
  //....
  minZoom: 2,
  maxZoom: 2
});

Regards,
Iliana Nikolova
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Tags
Map
Asked by
Sean
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or