[Chameleon] scalebar

Sears, Jeremy Jeremy.Sears at CCRS.NRCan.gc.ca
Mon Jan 16 14:28:12 EST 2006


Thanks for the tips!



-----Original Message-----
From: Paul Spencer [mailto:pspencer at dmsolutions.ca]
Sent: January 16, 2006 2:25 PM
To: Bart van den Eijnden (OSGIS)
Cc: Sears, Jeremy; 'chameleon at lists.maptools.org'
Subject: Re: [Chameleon] scalebar


doh, you are right.  It saves it in the directory specified in the  
chameleon.xml file.  This is generally the same as you would use in  
the WEB object of your map file.

You should be able to find the directory of the scalebar image in  
this session variable:

$_SESSION["gszTmpImgPath"]

The actual name is not saved in the session, you would need to modify  
the scalebar widget to store the generated name in the session.

Cheers

Paul

On 16-Jan-06, at 1:56 PM, Bart van den Eijnden (OSGIS) wrote:

> Are you sure about that Paul?
>
> My generated HTML indicates it is generated in ms_tmp:
>
>        <div id="ScalebarLayer">
>           <img src="/ms_tmp/11374376301601.png" name="ScaleBarImg"  
> width="200" height="27" border="0">
>        </div>
>
> Best regards,
> Bart
>
> Paul Spencer wrote:
>
>> Jeremy,
>>
>> the scalebar is likely rendered in drawmap.php and returned  
>> directly  to the browser rather than stored in a temporary  
>> directory that is  web-accessible.
>>
>> Cheers
>>
>> Paul
>>
>> On 16-Jan-06, at 1:30 PM, Sears, Jeremy wrote:
>>
>>> Hi All,
>>> Im wondering if anyone can point me to some documentation/ offer   
>>> advice
>>> regarding how the scalebar is drawn from within a chameleon session.
>>> Specifically, Im trying to find a variable or a script that I  
>>> can  access to
>>> learn the path to the scalebar image for a particular session.
>>>
>>> Many Thanks
>>> Jeremy
>>> _______________________________________________
>>> Chameleon mailing list
>>> Chameleon at lists.maptools.org
>>> http://lists.maptools.org/mailman/listinfo/chameleon
>>>
>>
>> +-----------------------------------------------------------------+
>> |Paul Spencer                           pspencer at dmsolutions.ca   |
>> +-----------------------------------------------------------------+
>> |Applications & Software Development                              |
>> |DM Solutions Group Inc                 http://www.dmsolutions.ca/|
>> +-----------------------------------------------------------------+
>>
>>
>>
>>
>> _______________________________________________
>> Chameleon mailing list
>> Chameleon at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/chameleon
>>
>>
>
>
> -- 
> Bart van den Eijnden
> OSGIS, Open Source GIS
> http://www.osgis.nl
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>

+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+





More information about the Chameleon mailing list