HTML Legends + mapscript (Updated)

Paul james pauljame at GMAIL.COM
Thu Aug 23 15:18:22 EDT 2007


I created a template.html like that :

[leg_class_html opt_flag=15]

<img src=[leg_icon]> [leg_class_name]<br>

[/leg_class_html]

And in my mapfile:

LEGEND

STATUS ON

KEYSIZE 18 12

# LABEL object

LABEL

TYPE BITMAP

SIZE MEDIUM

COLOR 0 0 89

END

TEMPLATE "template.html"

END

Now, In code(c#) I´m trying to use processLegendTemplate function without
sucess ... The function always return empty string ...
I think I´m not using it correctly :


string[] _x = new string[1];
string[] _y = new string[1];
string _html = mapaObj.processLegendTemplate(_x, _y, 1);

obs.: _html always return empty...



Any ideas? I´m using Mapserver 5.0 beta 3 !

[]´s




On 8/23/07, Paul james <pauljame at gmail.com> wrote:
>
> Hello guys !
> I need change my legend system (mapaObj.Legend()) drawwith HTML legend
> ...
> I´d like to known if someone could help me with that... Any samples using
> mapscript?
> I´m completely  lost on this task!
>
> Any help ?
>
> Thx
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070823/32550ca9/attachment.html


More information about the mapserver-users mailing list