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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Sep 7 08:13:10 EDT 2009


Author: marc
Date: 2009-09-07 08:13:09 -0400 (Mon, 07 Sep 2009)
New Revision: 4602

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

Modified: branches/2.6/http/javascripts/mod_digitize_tab.php
===================================================================
--- branches/2.6/http/javascripts/mod_digitize_tab.php	2009-09-04 17:01:22 UTC (rev 4601)
+++ branches/2.6/http/javascripts/mod_digitize_tab.php	2009-09-07 12:13:09 UTC (rev 4602)
@@ -132,20 +132,9 @@
 try {if(addCloneGeometryButton){}}catch(e) {addCloneGeometryButton = false;}
 
 function getMousePosition(e) {
-	parent.mb_getMousePos(e, mod_digitize_target);
-	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