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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Sep 7 08:27:17 EDT 2009


Author: marc
Date: 2009-09-07 08:27:17 -0400 (Mon, 07 Sep 2009)
New Revision: 4603

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
http://trac.osgeo.org/mapbender/ticket/490

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2009-09-07 12:13:09 UTC (rev 4602)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2009-09-07 12:27:17 UTC (rev 4603)
@@ -188,20 +188,9 @@
 	return false;
 }
 function getMousePosition(e) {
-	parent.mb_getMousePos(e);
-	var currentPos = null;
-	if (mapType == "DIV") {
-		currentPos = new parent.Point(
-			parent.clickX - parseInt(mapDomElement.style.left), 
-			parent.clickY - parseInt(mapDomElement.style.top)
-		);
-	}
-	else {
-		currentPos = new parent.Point(
-			parent.clickX, 
-			parent.clickY
-		);
-	}
+	var ind = parent.getMapObjIndexByName("<?php  echo $e_target;  ?>");
+	currentPos = parent.mb_mapObj[ind].getMousePosition(e);
+	
 	return currentPos;
 }
 



More information about the Mapbender_commits mailing list