Hi, try using Rule styling for layer, and supply name or title parameter. VectorLegend should pick it up from there.
If I get it right, VectorLegend first checks if there is rule defined. If there isnt any rule it creates one from supplied style, and I guess it sets title 'default'. Thats why you get label 'default'. After that it checks for rule title, if not then rule name and if none is there it puts untitledPrefix: "Untitled "+counter. Thats why label 'Untitled 2' is shown in examples/legendpanel.html Let us know how it went ;) Cheers On Tue, Sep 14, 2010 at 8:23 PM, Robert Buckley <[email protected]> wrote: > Hi, > > I have vector layers which are correctly named in my legend, but they all have > word "default" after them, and everytime I change the scale, they get a number > as well! > > My project . > http://www.rbuckley.com:8080/geoserver/www/zgb_energie/index1.html > > I saw it also on this > example.."http://dev.geoext.org/trunk/geoext/examples/legendpanel.html" > > Any one know how I can stop thisbehaviour? > > > Thanks for your help, > > Robert > > > _______________________________________________ > Users mailing list > [email protected] > http://www.geoext.org/cgi-bin/mailman/listinfo/users > -- Ivan Grcic _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
