Opened 15 years ago

Closed 13 years ago

#2980 closed enhancement (fixed)

HTML Legend, leg_layer_queryable

Reported by: adube Owned by: jmckenna
Priority: normal Milestone: 5.6 release
Component: Documentation - MapServer Version: unspecified
Severity: normal Keywords:
Cc: jmckenna, havatv

Description

It would be useful to have a new leg_layer_queryable tag for the layer block in the HTML Legend to have access to the layer template value. Simply, 1 would be true, 0 false.

Change History (6)

comment:1 by dmorissette, 15 years ago

Cc: adube@… removed

Actually, I would not add a [leg_layer_queryable] tag, but instead I'd add a new "layer_queryable" variable for use in [if ...] tags. It would work exactly the same way as the current "layer_visible" [if ...] variable.

The http://www.mapserver.org/output/html_legend.html should be updated as follows:

In a **[leg_group_html]** context:

...

- [if name=layer_queryable value=...] ... [/if]

    value is the queryability of the first layer in the group: 0=NOT QUERYABLE, 
    1=QUERYABLE

...

In a **[leg_layer_html]** context:

...

- [if name=layer_queryable value=...] ... [/if]

    value is the queryability of the layer: 0=NOT QUERYABLE, 1=QUERYABLE

...

In a **[leg_class_html]** context:

...

- [if name=layer_queryable value=...] ... [/if]

    value is the queryability of the layer: 0=NOT QUERYABLE, 1=QUERYABLE

...

comment:2 by dmorissette, 15 years ago

Cc: jmckenna added
Status: newassigned

Committed to SVN trunk r8917 (future 6.0).

We need to update the docs with the information above. Adding Jeff to CC to find out what is the correct way to update the docs while making it clear that the 3 new items are only available in 6.0

comment:3 by dmorissette, 13 years ago

Component: MapServer C LibraryMapServer Documentation
Owner: changed from dmorissette to jmckenna
Status: assignednew

Jeff, can you please add docs for the new "layer_queryable" variable for use in [if ...] tags? This was added in MapServer 5.6, see comment:1 above for the details.

comment:4 by dmorissette, 13 years ago

(BTW, I realize that comment:2 above said that was added in v6.0, but this note is incorrect because it was written before we decided to insert a 5.6 release between 5.4 and 6.0. This was really added in 5.6.)

comment:5 by dmorissette, 13 years ago

Milestone: 6.0 release5.6 release

comment:6 by havatv, 13 years ago

Cc: havatv added
Resolution: fixed
Status: newclosed

Fixed for 6.0 and trunk documentation in r12495 and r12496 (forgot the version info the first time).

Note: See TracTickets for help on using tickets.