GoogleMapsScrollZoomDisable

By mark.buer Last update May 10, 2009 — Installed 40 times. Daily Installs: 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0

There are 1 previous version of this script.

// ==UserScript==
// @name           GoogleMapsScrollZoomDisable
// @namespace      http://markbuer.blogspot.com
// @description    Disables Google Maps Scroll-Zoom (Main map page only)
// @include        http://maps.google.co.uk/
// ==/UserScript==

window.addEventListener('load', function() {

	function noScrollZoomWait() {
		var gApp = unsafeWindow.gApplication;
		if (gApp == null) {
			console.log('gApplication not ready. Waiting...');
			window.setTimeout(noScrollZoomWait, 100);
		} else {
			console.log('gApplication found. Disabling scroll zoom.');
			gApp.getMap().Sva();
		}
	}

	// Ensure this script only gets run once???
	if (!(typeof unsafeWindow.gApplication == 'undefined'))
		noScrollZoomWait();

}, false);