[fusion-commits] r2055 - sandbox/jxlib-3.0/widgets/AddWMSLayer
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed Feb 3 14:13:21 EST 2010
Author: pdeschamps
Date: 2010-02-03 14:13:20 -0500 (Wed, 03 Feb 2010)
New Revision: 2055
Modified:
sandbox/jxlib-3.0/widgets/AddWMSLayer/AddWMSLayer.php
Log:
in MapServer >5.3 connectiontype needs to be set with the method
"setConnectionType"
Modified: sandbox/jxlib-3.0/widgets/AddWMSLayer/AddWMSLayer.php
===================================================================
--- sandbox/jxlib-3.0/widgets/AddWMSLayer/AddWMSLayer.php 2010-02-03 18:57:02 UTC (rev 2054)
+++ sandbox/jxlib-3.0/widgets/AddWMSLayer/AddWMSLayer.php 2010-02-03 19:13:20 UTC (rev 2055)
@@ -147,7 +147,9 @@
$oLayer->set("name",$_REQUEST["layername"]);
$oLayer->set("status", MS_ON );
- $oLayer->set("connectiontype",MS_WMS);
+ //$oLayer->set("connectiontype",MS_WMS);
+ // in mapserver 5.4 we need to set the connection type with the method "setConnectionType"
+ $oLayer->setConnectionType(MS_WMS);
$oLayer->set("connection", $_REQUEST["servername"]);
$oLayer->set("type",MS_LAYER_RASTER);
$oLayer->setMetaData("legendLabel",$_REQUEST["owstitle"]);
More information about the fusion-commits
mailing list