[Mapbender-commits] r1937 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Dec 20 10:06:56 EST 2007
Author: christoph
Date: 2007-12-20 10:06:56 -0500 (Thu, 20 Dec 2007)
New Revision: 1937
Modified:
trunk/mapbender/http/javascripts/mod_measure.php
Log:
added cursor change
Modified: trunk/mapbender/http/javascripts/mod_measure.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_measure.php 2007-12-20 14:59:42 UTC (rev 1936)
+++ trunk/mapbender/http/javascripts/mod_measure.php 2007-12-20 15:06:56 UTC (rev 1937)
@@ -87,6 +87,12 @@
var el = window.frames[mod_measure_target].document;
el.onmousedown = mod_measure_start;
el.onmousemove = mod_measure_run;
+ el.onmouseover = function () {
+ el.body.style.cursor = 'crosshair';
+ }
+ el.onmouseout = function () {
+ el.body.style.cursor = 'auto';
+ }
var measureSub = "";
for(var i=0; i<mod_measureSubFunctions.length; i++){
measureSub += eval(mod_measureSubFunctions[i]);
@@ -97,6 +103,8 @@
var el = window.frames[mod_measure_target].document;
el.onmousedown = null;
el.onmousemove = null;
+ el.onmouseover = null;
+ el.onmouseout = null;
writeTag(mod_measure_target,"measure_display","");
writeTag(mod_measure_target,"measure_sub","");
}
More information about the Mapbender_commits
mailing list