MapTools.org

[Chameleon] LegendTemplate Widget and Print Widget

Paul Spencer spencer@dmsolutions.ca
Mon, 12 Jan 2004 10:00:04 -0500
Please file a bug on maptools.org related to the print problem.

Cheers,

Paul

Rene Teniere wrote:

> Paul,
> 
> Thanks, I will try that. Using the URL reference did not work though.
> One other thing I discovered... when I use the Print Widget, it will
> only work if the scalebar is not checked, otherwise I get a php.exe
> application error... weird.
> 
> Rene
> 
> 
>>>>pagameba@magma.ca 2004-01-12 10:05:53 AM >>>
> 
> Rene,
> 
> for some reason, it is not finding your template but I can't figure out
> 
> why not.  You can try setting the template as an HTTP:// reference, the
> 
> code also handles that.  You can also try adding 'embedded="false"' to
> 
> the widget, which will make the legend appear in a popup when you click
> 
> the text button.  That does mean that you will need to provide some 
> additional parameters for the popup and textbutton though.
> 
> Unfortunately, it seems to work fine here.  Are you willing to dig into
> 
> the code a little bit?  If yes, the you can edit the 
> LegendTemplate.widget.php file in the InitDefaults function and place 
> some echo statements at various places to see which code is executing,
> 
> ie echo 'step 1'; echo 'step 2'; and so on.
> 
> The basic purpose of this is to find out where the code ends up setting
> 
> the variable  $this->mszTemplate to an empty string (or fails to set it
> 
> to the correct value).
> 
> Cheers,
> 
> Paul
> 
> Rene Teniere wrote:
> 
> 
>>Hi All,
>>
>>Can't seem to be able to get the LegendTemplate Widget to work.
>>ErrorReport says that no legend template is specified, even though
> 
> it
> 
>>is. The template is a standard MapServer legend template format, and
> 
> I
> 
>>have used several different ones, as well as
>>legend_template_widget.html. I have also tried removing the template
>>reference in the mapfile with no results. Anyone know what's up with
>>this? I've been working on this for two days and am starting to pull
> 
> my
> 
>>hair out.
>>
>>Rene
>>
>><cwc2 type="legendtemplate" visible="true" enabled="true"
>>
> 
> template="C:/chameleon11a/websites/template/legend_template_chameleon.html"/>
> 
>>
>>Rene J.R. Teniere - BSc., D.GIS
>>GIS Technician
>>Nova Scotia Department of Natural Resources
>>Forestry Division (GIS) - Truro
>>
>>Phone: (902) 893-5655
>>Mobile: (902) 209-8956
>>_______________________________________________
>>Chameleon mailing list
>>Chameleon@lists.maptools.org 
>>http://lists.maptools.org/mailman/listinfo/chameleon 
>>
> 
> 

-- 
  -----------------------------------------------------------------
|Paul Spencer                           spencer@dmsolutions.ca    |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------



This archive was generated by Pipermail.