![]() |
||||
|
|
||||
[Chameleon] layermanager in chameleon 1.1aSchnider Markus msr@sourcepole.chTue, 30 Mar 2004 08:59:45 +0200
|
||||
Hi all,
I've tried this code in the index file:
----------------------------------------------------------------------------------------
<?
include( "/path/to/chameleon.php" );
$szTemplate = "test.html";
$szMapFile = "/path/to/test.map";
$szContext = "/path/to/test.cml";
class FOO extends Chameleon
{
function FOO()
{
parent::Chameleon();
$this->moMapSession = new MapSession_RW;
$this->moMapSession->setTempDir( getSessionSavePath());
}
}
$oApp = new FOO();
$oApp->CWCInitialize( $szTemplate, $szMapFile );
if (!isset($_GET['NAV_CMD']) && !isset($_POST['NAV_CMD']))
{
$oApp->moMapSession->oMap->loadMapContext( $GLOBALS['szContext'] );
}
$oApp->CWCExecute();
?>
----------------------------------------------------------------------------------------
and added the layermanager widget in the sample.html.
What else must I include to run the layermanager without errors?
Is there an other widget, to include wms servers?
Thanks,
Markus Schnider
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |