Paul, I've added a new C# example for testing processLegendTemplate in the SVN trunk. When doing the tests I've found the following issues and created a ticket per issue:
http://trac.osgeo.org/mapserver/ticket/2261 http://trac.osgeo.org/mapserver/ticket/2262 I've fixed #2261 immediately but I leave #2262 for some other folks. I'm not sure whether #2261 apply to your problem but the sample is working for me with the current SVN trunk. Best regards, Tamas 2007/8/23, Paul james <[EMAIL PROTECTED]>: > 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 <[EMAIL PROTECTED]> 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/[email protected]/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 <[EMAIL PROTECTED]>: > > > 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 < [EMAIL PROTECTED]> 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 > > > > > > > > > > > > > > > > > >
