[Chameleon] LegendTemplate Widget and Print Widget

Rene Teniere
Mon, 12 Jan 2004 10:35:26 -0400

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.


>>> 2004-01-12 10:05:53 AM >>>

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).



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
> is. The template is a standard MapServer legend template format, and
> 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
> hair out.
> Rene
> <cwc2 type="legendtemplate" visible="true" enabled="true"
> 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

|Paul Spencer                     |
|Applications & Software Development                              |
|DM Solutions Group Inc       | 

This archive was generated by Pipermail.