[Mapbender-commits] r5562 - branches/2.6/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sat Feb 20 09:46:54 EST 2010


Author: marc
Date: 2010-02-20 09:46:54 -0500 (Sat, 20 Feb 2010)
New Revision: 5562

Modified:
   branches/2.6/http/javascripts/mapnf.php
Log:
http://trac.osgeo.org/mapbender/ticket/603

Modified: branches/2.6/http/javascripts/mapnf.php
===================================================================
--- branches/2.6/http/javascripts/mapnf.php	2010-02-20 14:39:44 UTC (rev 5561)
+++ branches/2.6/http/javascripts/mapnf.php	2010-02-20 14:46:54 UTC (rev 5562)
@@ -51,6 +51,8 @@
 		mapObject = mb_registerMapObj('', '<?php echo $e_id; ?>', null,<?php echo $e_width; ?>, <?php echo $e_height; ?>);
 		
 		$("#"+mapObject.elementName).mousewheel(function (e, delta) {
+			
+			var mapObject = getMapObjByName('<?php echo $e_id; ?>');
 			if (sum_delta == 0) {
 				mapTimeout = setTimeout(function () {
 						lastScrollPosition = mapObject.getMousePosition(e);
@@ -67,6 +69,7 @@
 	});
 	
 	function mousewheelZoom () {
+		var mapObject = getMapObjByName('<?php echo $e_id; ?>');
 		var currentTime = new Date();
 	
 		if (currentTime.getTime() - lastTimestamp > 200) {



More information about the Mapbender_commits mailing list