you can put a line like

$refImgPath = $map->reference->image;
//... some code for adapting relative path ...  

at the end of the PHP header part of map.phtml and then further down below
define

<img id="refMapImg" name="refMapImg" src="<?php echo $refImgPath ?>"  ...

But you will have to take care with relative paths (for the map file it is
by default '../images/reference.png', for map.phtml you'd need
'images/reference.png'. So either play around with all the '__FILE__',
'cwd()' or 'substr()' stuff for the ref image path, or just use absolute
paths for the ref image.

armin

> from: Fr?d?ric Trastour <support at geoimage.fr>
> Tue, 28 Feb 2006 10:03:02 +0100
> 
> Armin,
> 
> I saw that, the image name is hard-coded in the IMG tag, and "a priori"
> the
> 
> My problem is that I generate on the fly both the map file and a specific
> config.ini file,
> and I would like to use mapserver to generate the overview image.
> 
> Thanks for your response,
> 
> Fr?d?ric.

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen f?r GMX Partner: http://www.gmx.net/de/go/partner

Reply via email to