HTML Legends + mapscript (Updated)

Tamas Szekeres szekerest at GMAIL.COM
Thu Aug 23 16:26:44 EDT 2007


Paul,

I recall I had a discussion about an issue like this a few months ago
in this list which can be found here:
http://www.mail-archive.com/mapserver-users@lists.umn.edu/msg11539.html

I'm not totally sure whether the statements out there apply to this
version exactly but this feature have been working that time pretty
well.


Best regards,

Tamas


2007/8/23, Paul james <pauljame at gmail.com>:
> 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
> >
> >
>
>



More information about the mapserver-users mailing list