[Mapbender-commits] r6659 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jul 30 05:33:43 EDT 2010


Author: christoph
Date: 2010-07-30 09:33:43 +0000 (Fri, 30 Jul 2010)
New Revision: 6659

Modified:
   trunk/mapbender/http/javascripts/mod_center1.php
Log:
use getMousePosition instead of deprecated getMousePos

Modified: trunk/mapbender/http/javascripts/mod_center1.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_center1.php	2010-07-30 09:31:09 UTC (rev 6658)
+++ trunk/mapbender/http/javascripts/mod_center1.php	2010-07-30 09:33:43 UTC (rev 6659)
@@ -51,8 +51,7 @@
 	$(mod_center_mapObj.getDomElement()).unbind("click", mod_center_event);
 }
 function mod_center_event(e){
-	mod_center_mapObj.getMousePos(e);
-
-	var pos = makeClickPos2RealWorldPos(mod_center_target, clickX, clickY);
-	zoom(mod_center_target,true,1.0,pos[0], pos[1]);
+	var pos = mod_center_mapObj.getMousePosition(e);
+	pos = mod_center_mapObj.convertPixelToReal(pos);
+	zoom(mod_center_target,true,1.0,pos.x, pos.y);
 }



More information about the Mapbender_commits mailing list