[Mapbender-commits] r9308 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Nov 23 07:31:03 PST 2015
Author: armin11
Date: 2015-11-23 07:31:03 -0800 (Mon, 23 Nov 2015)
New Revision: 9308
Modified:
trunk/mapbender/http/php/mod_wmc2ol.php
Log:
Alter FeatureInfo window size and allow usage of the defined opacity from wmc
Modified: trunk/mapbender/http/php/mod_wmc2ol.php
===================================================================
--- trunk/mapbender/http/php/mod_wmc2ol.php 2015-11-23 14:21:44 UTC (rev 9307)
+++ trunk/mapbender/http/php/mod_wmc2ol.php 2015-11-23 15:31:03 UTC (rev 9308)
@@ -458,6 +458,10 @@
$extensions=$xml->LayerList->Layer[$i]->Extension->children('http://www.mapbender.org/context');
$wms_id=$extensions->wms_id;
$layer_id=dom_import_simplexml($extensions->layer_id)->nodeValue;
+ $layer_opacity=((double)dom_import_simplexml($extensions->gui_wms_opacity)->nodeValue)/100;
+ if (!isset($layer_opacity)) {
+ $layer_opacity = 1;
+ }
$layer_name=$xml->LayerList->Layer[$i]->Name;
$wms_id=dom_import_simplexml($extensions->wms_id)->nodeValue;
$layerNames = getLayerNames($wms_id);
@@ -497,6 +501,7 @@
$html.=" projection: \"".$xml->General->BoundingBox['SRS']."\",\n";
$html.=" units: \"m\",\n";
$html.=" singleTile: true,\n";
+ $html.=" opacity: ".$layer_opacity.",\n";
$html.=" numZoomLevels: ".$numberZoomLevels.",\n";
//$extensions=$xml->LayerList->Layer[$i]->Extension->children('http://www.mapbender.org/context');
$minScale=dom_import_simplexml($extensions->gui_minscale)->nodeValue;
@@ -591,7 +596,7 @@
$html.=" QUERY_LAYERS: layer".$i.".params.LAYERS,\n";
$html.=" WIDTH: layer".$i.".map.size.w,\n";
$html.=" HEIGHT: layer".$i.".map.size.h});\n";
- $html.=" window.open(url".$i.",target=\"_blank\",\"scrollbars=1,width=250,height=400,left=100,top=200\");\n";
+ $html.=" window.open(url".$i.",target=\"_blank\",\"scrollbars=1,width=400,height=400,left=100,top=200,resizable=1\");\n";
}
}
#$html.=" OpenLayers.Event.stop(e);\n";
More information about the Mapbender_commits
mailing list