[Mapbender-commits] r7185 - in trunk/mapbender: conf http/css http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Dec 3 03:18:50 EST 2010


Author: verenadiewald
Date: 2010-12-03 00:18:50 -0800 (Fri, 03 Dec 2010)
New Revision: 7185

Modified:
   trunk/mapbender/conf/digitize_default.conf
   trunk/mapbender/http/css/digitize.css
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
renamed var for measuring, changed measure style

Modified: trunk/mapbender/conf/digitize_default.conf
===================================================================
--- trunk/mapbender/conf/digitize_default.conf	2010-12-02 16:07:31 UTC (rev 7184)
+++ trunk/mapbender/conf/digitize_default.conf	2010-12-03 08:18:50 UTC (rev 7185)
@@ -55,7 +55,7 @@
 }; 
 var measureNumberOfDigits = 3;
 
-var measureDistances = true;
+var measuring = true;
 
 var showSaveButtonForExistingGeometries = false;
 

Modified: trunk/mapbender/http/css/digitize.css
===================================================================
--- trunk/mapbender/http/css/digitize.css	2010-12-02 16:07:31 UTC (rev 7184)
+++ trunk/mapbender/http/css/digitize.css	2010-12-03 08:18:50 UTC (rev 7185)
@@ -21,6 +21,8 @@
 }
 
 .measure {
+	text-shadow: 0px 0px 5px #FFFFFF;
 	font-size: 8px;
   	font-family: "Verdana","Arial","Tahoma",sans-serif;
 }
+

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2010-12-02 16:07:31 UTC (rev 7184)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2010-12-03 08:18:50 UTC (rev 7185)
@@ -1653,7 +1653,7 @@
 								smPArray[smPArray.length] = "<div class='bp' style='top:"+
 									(currentPointMap.y-2)+"px;left:"+(currentPointMap.x-2)+"px;z-index:"+
 									parseInt(digitizeTransactionalZIndex+10, 10)+";background-color:"+linepointColor+"'";
-								if(measureDistances) {
+								if(measuring) {
 									if(isLine && k != 0) {
 										totalDistMeasureTag = "<p class='measure'>"+currentGeometry.getAggregatedDist(k-1, 2)+"</p>";
 									}
@@ -1662,7 +1662,7 @@
 							}
 							else {
 								smPArray[smPArray.length] = "<div class='bp' style='top:"+(currentPointMap.y-2)+"px;left:"+(currentPointMap.x-2)+"px;z-index:"+parseInt(digitizeTransactionalZIndex+10, 10)+";'";
-								if(measureDistances) {
+								if(measuring) {
 									if(isLine && k == 0) {
 										//nothing
 										totalDistMeasureTag = "";
@@ -1787,7 +1787,7 @@
 				strArray[strArray.length] = "onmouseover='window.frames[\""+mod_digitize_elName+"\"].convertLinepointToBasepoint(this,"+memberIndex+","+geomIndex+","+ringIndex+","+pointIndex+")'";
 			}
 			strArray[strArray.length] = ">";
-			if(measureDistances) {
+			if(measuring) {
 				if(i == lineCenter) {
 					strArray[strArray.length] = "<p class='measure'>"+d.getGeometry(memberIndex, geomIndex).getDist(pointIndex-1, 2)+"</p>";
 				}



More information about the Mapbender_commits mailing list