[Mapbender-commits] r8285 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Mar 12 16:32:56 EDT 2012
Author: armin11
Date: 2012-03-12 13:32:56 -0700 (Mon, 12 Mar 2012)
New Revision: 8285
Modified:
trunk/mapbender/http/classes/class_map.php
Log:
Bugfix for WMC handling. The opacity was not stored correctly, cause the name of the attribut was gui_wms_mapopacity in map object and gui_wms_opacity in database, class_wms and class_wmc :-( .
The value of gui_wms_opacity is gui_wms_mapopacity * 100 ! The opacity is now managed correctly in the wmc.
Modified: trunk/mapbender/http/classes/class_map.php
===================================================================
--- trunk/mapbender/http/classes/class_map.php 2012-03-09 10:18:35 UTC (rev 8284)
+++ trunk/mapbender/http/classes/class_map.php 2012-03-12 20:32:56 UTC (rev 8285)
@@ -516,7 +516,7 @@
$wms->gui_wms_mapformat = $currentWms->gui_wms_mapformat;
$wms->gui_wms_featureinfoformat = $currentWms->gui_wms_featureinfoformat;
$wms->gui_wms_exceptionformat = $currentWms->gui_wms_exceptionformat;
- $wms->gui_wms_opacity = $currentWms->gui_wms_opacity;
+ $wms->gui_wms_opacity = ($currentWms->gui_wms_mapopacity)*100;//this definition is not easy to understand. TODO: find another, consistent behavior.
$wms->gui_wms_sldurl = $currentWms->gui_wms_sldurl;
$wms->gui_wms_visible = $currentWms->gui_wms_visible;
$wms->gui_wms_epsg = $currentWms->gui_wms_epsg;
More information about the Mapbender_commits
mailing list