[mapguide-users] Mapguide 4.0 dynamic legend lable

Jackie Ng jumpinjackie at gmail.com
Wed Apr 9 03:01:24 PDT 2025


I just checked the legend image plotting code, and layer labels there are
just rendered to the final image verbatim, without going through FDO
expression evaluation, which kind of makes logical sense as rendering
legend content should not be making any FDO feature queries, where we would
have access to a means to evaluate FDO expressions. So, the answer is no.

Same for the rendering of Legend labels in our viewer offerings. They're
definitely rendered out as-is.

- Jackie

You wrote:

Hi!

Does Mapguide 4.0 supports dynamic, on-the-fly calculations directly in
legend labels.
For a sample themed layer: for every theme I like to show count of records
per theme as legend label. LegendLabel I like to include:
Count(If(ExtractToInt('YEAR',
date) = 2025, 1, NULL))
I'm using Maestro 12 and 13.


Thanks in advance!
Kajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20250409/c3ecc621/attachment.htm>


More information about the mapguide-users mailing list