I have observed that legends do not work with existing mapfiles; all of which have MIN/MAX SCALES set. It is broken using mode=browse, mode=legend and GetLegendGraphics. Little black boxes are returned for both GD and AGG renderer's. The same map, with the same extents has a working legend using MS4.
See: MS4: (working legend) http://pmap1.hud.uai.com/cgi-bin4/mapserv.exe?map=/mapserver/gdt/main4.map&BBOX=-86.778940,34.651680,-86.718060,34.697320&mapxy=-86.7485%2034.6745&scale=24000.000000&layers=bound+hydro+landmark+roads+base_anno+hydro_anno+roads_anno+landmark_point+city&mode=browse MS5: (broken legend) http://pmap1.hud.uai.com/cgi-bin/mapserv.exe?map=/mapserver/gdt/main4.map&BBOX=-86.778940,34.651680,-86.718060,34.697320&mapxy=-86.7485%2034.6745&scale=24000.000000&layers=bound+hydro+landmark+roads+base_anno+hydro_anno+roads_anno+landmark_point+city&mode=browse I do not have any mapfiles without MIN/MAX scales ready to test at the moment. John tbonfort wrote: > > could all of you having these problems summarize , for each specific > case if necessary (i.e. html legends or wms getlegendgraphics), if the > problem is specific to agg rendering or also occurs using gd. > > there's also http://trac.osgeo.org/mapserver/ticket/2284 on this, so > it is a known issue that legending is buggy if using agg > > cheers, > tb > > -- View this message in context: http://www.nabble.com/Legend-problem-in-MapServer-5.0-tf4482729.html#a12877729 Sent from the Mapserver - User mailing list archive at Nabble.com.
