HTML Legends + mapscript (Updated)

Paul james pauljame at GMAIL.COM
Thu Aug 23 16:48:13 EDT 2007


Thank you Tamas....
But, I´ve already read that discussion before and unfortunately I don´t
known how It can help-me to make processLegendTemplate function works...

If anyone have a sample using it, I will be very happy !  I´m stuck in that
about 2 days ....
I think my template html is fine... The only problem I think is that
function that always return a empty string :( ...

Ty very much again!



On 8/23/07, Tamas Szekeres <szekerest at gmail.com> wrote:
>
> 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
> > >
> > >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070823/96deda90/attachment.html


More information about the mapserver-users mailing list