HTML Legend

Lowell Filak lfilak at MEDINACO.ORG
Wed Jun 1 07:55:45 PDT 2005


Greetings,

Am I missing something here.
The "map" template contains tags such as [map] that are replaced by the
parser with the corresponding value from the cgi call, ie. map=popup.map.
However it appears that the "legend" template pulls all values from the
mapfile or from whatever the corresponding object member is.?
So, why does map->processLegendTemplate have any arguments at all?
I guess it could be handy to insert arbitrary text, ie.

-- legend.html --
<td>
My Text = [map]
</td>
-----------------

-- mapscript --
@names = ("map");
@values = ("Just Print This");
$map->processLegendTemplate(\@names,\@values)
---------------

Lowell



More information about the MapServer-users mailing list