Opened 22 years ago

Closed 22 years ago

Last modified 22 years ago

#99 closed defect (fixed)

Problems with new HTML Legend

Reported by: jdoyon@… Owned by: dmorissette
Priority: high Milestone:
Component: MapServer CGI Version: 3.6
Severity: normal Keywords:
Cc: sfournier@…

Description

I get the following error as soon as I add a TEMPLATE keyword in the LEGEND 
section:

Content-type: text/html generateLayerTemplate(): Web application error. Invalid 
pointer.

The legend template looks like:

<table>
[leg_layer_html]
<tr><td><img src="[leg_icon]"></td><td>[leg_layer_name]</td></tr>
[/leg_layer_html]
</table>

and the legend entry look slike:

LEGEND
  TEMPLATE /home/mapdata/nac/legend.html
#  LABEL
#    FONT arial
#    TYPE truetype
#    SIZE 8
#    COLOR 0 0 0
#  END
#  IMAGECOLOR 255 255 255
#  STATUS on
END

The layers have NO metadata associated to them right now, since it shouldn't be 
needed for this simple a legend.

The compile was done from CVS as of today, on a RedHat 7.1 box.  There were no 
warnings reported that seemed related to the legend ...

that's it!

Thanks,
J.F.

Change History (1)

comment:1 by dmorissette, 22 years ago

Cc: sfournier@… added
Resolution: fixed
Status: newclosed
Fixed in CVS already!  :)

sfournier@dmsolutions.ca  wrote:
> Fixed. This error happen when we do not specify any arguments to
> [leg_layer_html]. I've done the same check for [leg_class_html] just in case.
> 

Note: See TracTickets for help on using tickets.