[Chameleon] KeymapDHTML

Bart van den Eijnden BEN at Syncera-ITSolutions.NL
Mon May 30 09:47:33 EDT 2005


Hi Stephan,

That should be quite easy, just leave out the image in the cwc2 tag. If it is not set, it reads from the MAP file.

See the code fragment:

            // set image
            if (isset($this->maParams['IMAGE']))
            {
                $szImage = $oApp->getRemoteFile( $this->maParams['IMAGE'] );
                $szImage = $oApp->findFile( $szImage );
                $this->moMapObject->oMap->reference->set( "image", $szImage );
            }
            else
            {
                $szMapPath = realpath( $_SESSION['gszMapPath'] )."/";

                $szImage = $this->moMapObject->oMap->reference->image;

                $szImage = realpath($oApp->resolvePath2( $szImage, $szMapPath ));
                $this->moMapObject->oMap->reference->set( "image", $szImage );

            }

Best regards,
Bart



Bart van den Eijnden
Syncera-ITSolutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl




More information about the Chameleon mailing list