MuttDiggityDawg
MuttDiggityDawg

Reputation: 53

How do I disable the mousewheel zoom in Here Maps JavaScript API v3?

The code to disable mousewheel zoom on Here Maps JS API v2 was this:

map.removeComponent(map.getComponentById("zoom.MouseWheel"));

But that is an undefined function in v3 of the API. What is the best way to disable mousewheel zoom in the latest API?

Thank you for the help.

Upvotes: 3

Views: 1792

Answers (1)

echom
echom

Reputation: 932

behavior.disable(H.mapevents.Behavior.WHEELZOOM);

Upvotes: 14

Related Questions