[Mapserver-users] Legend templates, classes and lines...

Steve Lime steve.lime at dnr.state.mn.us
Tue Jun 24 13:47:42 EDT 2003


This is a MIME message. If you are reading this text, you may want to 
consider changing to a mail reader or gateway that understands how to 
properly handle MIME multipart messages.

--=_E2BD29C2.8EEF8735
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Folks: I'm using 4.0 and wondered if anyone else has run into
problems with legend templates with LINE layers and multiple classes.
Check out the following URL:

 
http://maps.dnr.state.mn.us/cgi-bin/mapserv40?mapserv=http%3A//maps.dnr.state.mn.us/cgi-bin/mapserv40&map_status=on&mapsize=800+750&map=LANDVIEW_HERITAGE_MAPFILE&template=/usr/local/www/docs/landview/heritage/templates/print.html&mapext=316287.17433148284+4891207.862044461+342298.221100423+4910705.970655294&layers=mnrrpln3+mnnpcpy3+mnsbspy3+lakes+ctybdln2+doq03im4

It's a "print" layout and uses the legend template functionality. The
problem is that the line legend for the "Railroad Rights-of-Way Praries"
ain't right. The 3 classes should be red, yellow and orange (as in the
map) and not all red. The polygon layer below it ("Sites of Biodiversity
Significance") works as expected. Before I run to the source code I want
to make sure I'm not doing anything stupid. The legend template is
included below.

Steve

--=_E2BD29C2.8EEF8735
Content-Type: text/html; name="print_legend.html"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="print_legend.html"

[leg_layer_html]
  [if name=TITLE oper=isset]
    [metadata name=TITLE]<br>
  [/if]
[/leg_layer_html]

[leg_class_html]
  &nbsp;&nbsp;<img src="[leg_icon]">&nbsp;&nbsp;[leg_class_name]<br>
[/leg_class_html]

--=_E2BD29C2.8EEF8735--



More information about the mapserver-users mailing list