[MapServer-users] MapServer legend in json
Richard Greenwood
richard.greenwood at gmail.com
Tue Sep 3 15:39:58 PDT 2024
Hey Michael,
This may not be what you are looking for but I use dLegend which is a
legend generator that Steve Lime and his staff wrote a long time ago.
Here's an example:
https://maps.greenwoodmap.com/sublette/mapserver/map#zcr=1/2690000/1170000/0&lyrs=public,townlim,ownership,roads
It parses a map file. It pulls out styles and classes from the layer
definitions and reads some dLegend specific keys in the METADATA block. It
writes out JSON (look at the legend.js in the example). It uses PHP
MapScript to parse the map file. It's got some nice options.
Rich
On Tue, Sep 3, 2024 at 8:29 AM Michael Smith via MapServer-users <
mapserver-users at lists.osgeo.org> wrote:
> Hi everyone,
>
>
>
> I’ve used MapServer html legends before and had them work well. Now I have
> a development group that wants the output in json. Was wondering if anyone
> had an html template for legends the generates them in json?
>
>
>
> Mike
>
>
>
>
>
> --
>
> Michael Smith
>
> Remote Sensing/GIS Center
>
> US Army Corps of Engineers
>
>
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
Richard W. Greenwood
www.greenwoodmap.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20240903/8c871d35/attachment.htm>
More information about the MapServer-users
mailing list