[Mapbender-commits] r3829 - in trunk/mapbender: conf
http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Mar 27 07:17:53 EDT 2009
Author: verenadiewald
Date: 2009-03-27 07:17:53 -0400 (Fri, 27 Mar 2009)
New Revision: 3829
Modified:
trunk/mapbender/conf/digitize_default.conf
trunk/mapbender/conf/wfs_default.conf
trunk/mapbender/http/javascripts/mod_digitize_tab.php
trunk/mapbender/http/javascripts/mod_tooltip.php
trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php
Log:
possibility to define geomHighlightColour for digitizing and resultHighlightColour for spatial request in conf files: http://trac.osgeo.org/mapbender/ticket/406
Modified: trunk/mapbender/conf/digitize_default.conf
===================================================================
--- trunk/mapbender/conf/digitize_default.conf 2009-03-27 11:09:46 UTC (rev 3828)
+++ trunk/mapbender/conf/digitize_default.conf 2009-03-27 11:17:53 UTC (rev 3829)
@@ -28,6 +28,8 @@
var snappingColor = "#ff0000";
var snappingTolerance = 12;
+var geomHighlightColour = "#ff0000";
+
var snappingHighlightZIndex = 120;
var digitizeTransactionalZIndex = 80;
var digitizeNonTransactionalZIndex = 20;
Modified: trunk/mapbender/conf/wfs_default.conf
===================================================================
--- trunk/mapbender/conf/wfs_default.conf 2009-03-27 11:09:46 UTC (rev 3828)
+++ trunk/mapbender/conf/wfs_default.conf 2009-03-27 11:17:53 UTC (rev 3829)
@@ -27,6 +27,8 @@
var generalHighlightZIndex = 90;
var generalHighlightLineWidth = 2;
+var resultHighlightColour = "#FF0000";
+
var wfsResultModulePath = "php/";
var wfsResultModuleFilename = "mod_wfs_result.php";
Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php 2009-03-27 11:09:46 UTC (rev 3828)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php 2009-03-27 11:17:53 UTC (rev 3829)
@@ -1227,9 +1227,9 @@
if (d.get(i).e.getElementValueByName('fid')) {
listOfGeom += "<img src = '"+buttonDig_imgdir+buttonDig_removeDb_src+"' title='"+msgObj.buttonDig_removeDb_title+"' onclick=\"var deltrans = confirm('"+msgObj.messageConfirmDeleteGeomFromDb+"');if (deltrans) dbGeom('delete', "+i+")\">";
}
- listOfGeom += "<div class='digitizeGeometryListItem' onmouseover='parent.mb_wfs_perform(\"over\",d.get("+i+"));' ";
- listOfGeom += " onmouseout='parent.mb_wfs_perform(\"out\",d.get("+i+"))' ";
- listOfGeom += " onclick='parent.mb_wfs_perform(\"click\",d.get("+i+"));' ";
+ listOfGeom += "<div class='digitizeGeometryListItem' onmouseover='parent.mb_wfs_perform(\"over\",d.get("+i+"),\""+geomHighlightColour+"\");' ";
+ listOfGeom += " onmouseout='parent.mb_wfs_perform(\"out\",d.get("+i+"),\""+geomHighlightColour+"\")' ";
+ listOfGeom += " onclick='parent.mb_wfs_perform(\"click\",d.get("+i+"),\""+geomHighlightColour+"\");' ";
var geomName = getName(d.get(i));
var currentGeomType;
if (d.get(i).geomType == parent.geomType.polygon) {
@@ -1256,9 +1256,9 @@
d.get(i).get(j).innerRings.count() > 0)) {
listOfGeom += "<li>";
listOfGeom += "<img src = '"+buttonDig_imgdir+buttonDig_remove_src+"' title='"+msgObj.buttonDig_remove_title+"' onclick='parent.mb_disableThisButton(mod_digitizeEvent);d.get("+i+").del(" + j + ");executeDigitizeSubFunctions();'>";
- listOfGeom += "<div class='digitizeGeometryListItem' onmouseover='parent.mb_wfs_perform(\"over\",d.get("+i+").get("+j+"));' ";
- listOfGeom += " onmouseout='parent.mb_wfs_perform(\"out\",d.get("+i+").get("+j+"))' ";
- listOfGeom += " onclick='parent.mb_wfs_perform(\"click\",d.get("+i+").get("+j+"));' ";
+ listOfGeom += "<div class='digitizeGeometryListItem' onmouseover='parent.mb_wfs_perform(\"over\",d.get("+i+").get("+j+"),\""+geomHighlightColour+"\");' ";
+ listOfGeom += " onmouseout='parent.mb_wfs_perform(\"out\",d.get("+i+").get("+j+"),\""+geomHighlightColour+"\")' ";
+ listOfGeom += " onclick='parent.mb_wfs_perform(\"click\",d.get("+i+").get("+j+"),\""+geomHighlightColour+"\");' ";
listOfGeom += ">" + currentGeomType + "#" + (j+1) +"</div></li>";
}
if (d.get(i).geomType == geomType.polygon &&
@@ -1269,9 +1269,9 @@
var currentRing = d.get(i).get(j).innerRings.get(k);
listOfGeom += "<li>";
listOfGeom += "<img src = '"+buttonDig_imgdir+buttonDig_remove_src+"' title='"+msgObj.buttonDig_remove_title+"' onclick='parent.mb_disableThisButton(mod_digitizeEvent);d.get("+i+").get(" + j + ").innerRings.del(" + k + ");executeDigitizeSubFunctions();'>";
- listOfGeom += "<div class='digitizeGeometryListItem' onmouseover='parent.mb_wfs_perform(\"over\",d.getGeometry("+i+","+j+").innerRings.get(" + k + "));' ";
- listOfGeom += " onmouseout='parent.mb_wfs_perform(\"out\",d.getGeometry("+i+","+j+").innerRings.get(" + k + "))' ";
- listOfGeom += " onclick='parent.mb_wfs_perform(\"click\",d.getGeometry("+i+","+j+").innerRings.get(" + k + "));' ";
+ listOfGeom += "<div class='digitizeGeometryListItem' onmouseover='parent.mb_wfs_perform(\"over\",d.getGeometry("+i+","+j+").innerRings.get(" + k + "),\""+geomHighlightColour+"\");' ";
+ listOfGeom += " onmouseout='parent.mb_wfs_perform(\"out\",d.getGeometry("+i+","+j+").innerRings.get(" + k + "),\""+geomHighlightColour+"\")' ";
+ listOfGeom += " onclick='parent.mb_wfs_perform(\"click\",d.getGeometry("+i+","+j+").innerRings.get(" + k + "),\""+geomHighlightColour+"\");' ";
listOfGeom += ">inner ring #" + (k+1) +"</div></li>";
}
Modified: trunk/mapbender/http/javascripts/mod_tooltip.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_tooltip.php 2009-03-27 11:09:46 UTC (rev 3828)
+++ trunk/mapbender/http/javascripts/mod_tooltip.php 2009-03-27 11:17:53 UTC (rev 3829)
@@ -303,9 +303,9 @@
for (var i = 0 ; i < _geomArray.count(); i ++) {
if (_geomArray.get(i).get(-1).isComplete()) {
html += "\t<tr class='list_"+(i%2?"uneven":"even")+"'>\n\t\t<td \n";
-// html += "\t\t\t onmouseover='mb_wfs_perform(\"over\",_geomArray.get("+i+"));' ";
-// html += " onmouseout='mb_wfs_perform(\"out\",_geomArray.get("+i+"))' ";
-// html += " onclick='mb_wfs_perform(\"click\",_geomArray.get("+i+"));' ";
+// html += "\t\t\t onmouseover='mb_wfs_perform(\"over\",_geomArray.get("+i+"),resultHighlightColour);' ";
+// html += " onmouseout='mb_wfs_perform(\"out\",_geomArray.get("+i+"),resultHighlightColour)' ";
+// html += " onclick='mb_wfs_perform(\"click\",_geomArray.get("+i+"),resultHighlightColour);' ";
var geomName = getWfsListEntry(_geomArray.get(i));
html += ">" + geomName +"</td>";
html += "\t\t</tr>\n";
Modified: trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php 2009-03-27 11:09:46 UTC (rev 3828)
+++ trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php 2009-03-27 11:17:53 UTC (rev 3829)
@@ -705,9 +705,9 @@
for (var i = 0 ; i < geomArray.count(); i ++) {
if (geomArray.get(i).get(-1).isComplete()) {
listOfGeom += "\t<tr>\n\t\t<td style = 'color:blue;font-size:12px;cursor:pointer;'\n";
- listOfGeom += "\t\t\t onmouseover='mb_wfs_perform(\"over\",geomArray.get("+i+"));' ";
- listOfGeom += " onmouseout='mb_wfs_perform(\"out\",geomArray.get("+i+"))' ";
- listOfGeom += " onclick='mb_wfs_perform(\"click\",geomArray.get("+i+")); showWfs("+i+");' ";
+ listOfGeom += "\t\t\t onmouseover='mb_wfs_perform(\"over\",geomArray.get("+i+"),resultHighlightColour);' ";
+ listOfGeom += " onmouseout='mb_wfs_perform(\"out\",geomArray.get("+i+"),resultHighlightColour)' ";
+ listOfGeom += " onclick='mb_wfs_perform(\"click\",geomArray.get("+i+"),resultHighlightColour); showWfs("+i+");' ";
var geomName = getListTitle(geomArray.get(i));
//if (geomArray.get(i).geomType == geomType.polygon) {geomName += "(polygon)";}
//else if (geomArray.get(i).geomType == geomType.line) {geomName += "(line)";}
More information about the Mapbender_commits
mailing list