Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#1574 closed defect (fixed)

Need to document a couple of new layer and class level tags for HTML legend output.

Reported by: sdlime Owned by: jmckenna@…
Priority: high Milestone:
Component: Documentation - MapServer Version: 4.8
Severity: normal Keywords:
Cc:

Description

To create base data (XML or javascript) via the HTML legend code we need to 
expose a few more bits of information via tags. So, I have added:

Layer context

1)[leg_layer_group] gets the layer group name
2)[leg_layer_index] gets the layers mapfile index value (useful for ordering)
3)[leg_layer_minscale]/[leg_layer_maxscale] get the layer scale boundaries

Class context

1)[leg_layer_name] gets the parent layer name
2)[class_layer_index] gets the classes mapfile index value (useful for ordering 
and legend icon creation)
3)[class_layer_minscale]/[class_layer_maxscale] get the class scale boundaries

Steve

Change History (3)

comment:1 by jmckenna@…, 18 years ago

Status: newassigned
working on this now

comment:2 by jmckenna@…, 18 years ago

Resolution: fixed
Status: assignedclosed
updated on http://mapserver.gis.umn.edu/docs/howto/html_legend

[class_layer_index]  => changed to [leg_class_index]
[class_layer_minscale] => changed to [leg_class_minscale]
[class_layer_maxscale] => changed to [leg_class_maxscale]

comment:3 by jmckenna@…, 18 years ago

i also tested each of the new tags.
Note: See TracTickets for help on using tickets.