[Chameleon] KeymapDHTML

Stephan Holl sholl at gmx.net
Mon May 30 09:55:42 EDT 2005


Hello Bart, 

On Mon, 30 May 2005 15:47:33 +0200 "Bart van den Eijnden" <BEN at Syncera-
ITSolutions.NL> wrote:

> 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 );
> 
>             }
> 

ploing, that easy! I did not try leaving the image-part away :-)

thanks a bunch

	Stephan


-- 
Stephan Holl

Check headers for GnuPG Key!
http://www.gdf-hannover.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/chameleon/attachments/20050530/a74549ba/attachment.bin


More information about the Chameleon mailing list