[Mapbender-commits] r3676 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Mar 12 12:08:20 EDT 2009
Author: christoph
Date: 2009-03-12 12:08:19 -0400 (Thu, 12 Mar 2009)
New Revision: 3676
Modified:
trunk/mapbender/http/javascripts/mod_pan.php
Log:
no longer uses the deprecated function mb_getMousePos
Modified: trunk/mapbender/http/javascripts/mod_pan.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_pan.php 2009-03-12 12:52:41 UTC (rev 3675)
+++ trunk/mapbender/http/javascripts/mod_pan.php 2009-03-12 16:08:19 UTC (rev 3676)
@@ -61,19 +61,19 @@
}
function mod_pan_start(e){
mb_panActive = true;
- mb_getMousePos(e,mod_pan_target);
+ var pos = mod_pan_MapObj.getMousePosition(e);
var el = mod_pan_MapObj.getDomElement();
- mb_start_x=clickX;
- mb_start_y=clickY;
- mb_end_x = clickX;
- mb_end_y = clickY;
+ mb_start_x=pos.x;
+ mb_start_y=pos.y;
+ mb_end_x = pos.x;
+ mb_end_y = pos.y;
return false;
}
function mod_pan_run(e){
if(mb_panActive){
- mb_getMousePos(e,mod_pan_MapObj.frameName);
- mb_end_x = clickX;
- mb_end_y = clickY;
+ var pos = mod_pan_MapObj.getMousePosition(e);
+ mb_end_x = pos.x;
+ mb_end_y = pos.y;
mod_pan_move_map();
if(ie){
return false;
More information about the Mapbender_commits
mailing list