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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Apr 12 07:58:14 EDT 2010


Author: verenadiewald
Date: 2010-04-12 07:58:10 -0400 (Mon, 12 Apr 2010)
New Revision: 5947

Modified:
   trunk/mapbender/http/css/digitize.css
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
improved usability of geom object operation mouse events

Modified: trunk/mapbender/http/css/digitize.css
===================================================================
--- trunk/mapbender/http/css/digitize.css	2010-04-12 11:22:27 UTC (rev 5946)
+++ trunk/mapbender/http/css/digitize.css	2010-04-12 11:58:10 UTC (rev 5947)
@@ -6,7 +6,6 @@
 
 .lp, .bp {
 	font-size: 1px;
-	cursor: pointer;
 }
 
 .lp {

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2010-04-12 11:22:27 UTC (rev 5946)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2010-04-12 11:58:10 UTC (rev 5947)
@@ -1501,10 +1501,10 @@
 							if (!isComplete && ((k == 0 && isPolygon) || (k == lenPoint-1 && isLine))) {
 								smPArray[smPArray.length] = "<div class='bp' style='top:"+
 									(currentPointMap.y-2)+"px;left:"+(currentPointMap.x-2)+"px;z-index:"+
-									digitizeTransactionalZIndex+";background-color:"+linepointColor+"'";
+									parseInt(digitizeTransactionalZIndex+10, 10)+";background-color:"+linepointColor+"'";
 							}
 							else {
-								smPArray[smPArray.length] = "<div class='bp' style='top:"+(currentPointMap.y-2)+"px;left:"+(currentPointMap.x-2)+"px;z-index:"+digitizeTransactionalZIndex+";'";
+								smPArray[smPArray.length] = "<div class='bp' style='top:"+(currentPointMap.y-2)+"px;left:"+(currentPointMap.x-2)+"px;z-index:"+parseInt(digitizeTransactionalZIndex+10, 10)+";'";
 							}
 							if(k==0 && isPolygon && !isComplete){
 								smPArray[smPArray.length] = " title='"+msgObj.closePolygon_title+"' ";
@@ -1545,13 +1545,13 @@
 									"px;left:" +
 									(currentPointMap.x - 2) +
 									"px;z-index:" +
-									digitizeTransactionalZIndex +
+									parseInt(digitizeTransactionalZIndex+10, 10) +
 									";background-color:" +
 									linepointColor +
 									"'";
 								}
 								else {
-									smPArray[smPArray.length] = "<div class='bp' style='top:" + (currentPointMap.y - 2) + "px;left:" + (currentPointMap.x - 2) + "px;z-index:" + digitizeTransactionalZIndex + ";'";
+									smPArray[smPArray.length] = "<div class='bp' style='top:" + (currentPointMap.y - 2) + "px;left:" + (currentPointMap.x - 2) + "px;z-index:" + parseInt(digitizeTransactionalZIndex+10, 10) + ";'";
 								}
 								if (m == 0 && isPolygon && !isComplete) {
 									smPArray[smPArray.length] = " title='" + msgObj.closePolygon_title + "' ";
@@ -1602,7 +1602,7 @@
 				strArray[strArray.length] = "<div class='lp' style='top:"+y+"px;left:"+x+"px;z-index:"+digitizeTransactionalZIndex+";background-color:"+linepointColor+"' ";
 			}
 			else {
-				strArray[strArray.length] = "<div class='lp' style='top:"+y+"px;left:"+x+"px;z-index:"+digitizeTransactionalZIndex+";' ";
+				strArray[strArray.length] = "<div class='lp' style='top:"+y+"px;left:"+x+"px;z-index:"+digitizeTransactionalZIndex+";' onmousedown='return false;' ";
 			}
 			if(mod_digitizeEvent == button_insert) {
 				strArray[strArray.length] = "onmouseover='window.frames[\""+mod_digitize_elName+"\"].convertLinepointToBasepoint(this,"+memberIndex+","+geomIndex+","+ringIndex+","+pointIndex+")'";



More information about the Mapbender_commits mailing list