Map coming...

Scroll Wheel Zoom

  • Came documented with v=2.78
  • Syntax: map.enableScrollWheelZoom();
  • Can be used with continuous zoom
  • map.enableContinuousZoom();
  • The animated red corners overflow outside map container
  • Try scrollzooming close to an edge of the map
  • The overflow can be hidden by css
  • map.getContainer().style.overflow="hidden";
  • Webpage scrolls along with the map zoom
  • Preventing unwanted page scroll takes an event listener
  • Prevent page scroll when mouse on map

JS-Kit Comments

  • Now with rating
  • Try it. Leave a comment. Get it.
Example index