[mapserver-users] LABELITEM in TEMPLATE or dynamic template

Lime, Steve D (MNIT) steve.lime at state.mn.us
Fri Apr 20 08:22:37 PDT 2018


You can’t get at core properties through the template tags. You can get at anything you pass in to a request so if you’re dynamically setting the labelitem then you could exploit that. I believe you can also get at values stored in the metadata block so you could use that. Syntax is [layername_meta data key]… It would be interesting to learn a little more about your setup to see if there is a more expedient way to do what you’re after.

--Steve

From: Luca Delucchi [mailto:lucadeluge at gmail.com]
Sent: Monday, April 16, 2018 11:44 PM
To: Lime, Steve D (MNIT) <steve.lime at state.mn.us>
Cc: MapServer <mapserver-users at lists.osgeo.org>
Subject: Re: [mapserver-users] LABELITEM in TEMPLATE or dynamic template


Il lun 16 apr 2018, 22:09 Lime, Steve D (MNIT) <steve.lime at state.mn.us<mailto:steve.lime at state.mn.us>> ha scritto:
I don’t get what you mean by template - are you really talking about a query template (either via TEMPLATE or a template-driven output format) or something else? --Steve

A query template, in the template it is required to set [item name="column_name"] I would like to set [item LABELITEM] or something similar

Thanks
Luca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20180420/1312fb31/attachment.html>


More information about the mapserver-users mailing list