On 25/07/2008 13:07, [EMAIL PROTECTED] wrote: > Hi, > > Can I influence the size of legend icon/image in any way? I understand the > icoW/icoH parameters. They define the size of legend icon "box" but what > about the real size of the legend image?
the icoW/icoH defines the 'real size of the legend image' that is cerated via Mapscript. If you modify this setting and did not modify the map file then the icon images are not overwritten. So just save the map file again or delete the images in /images/legend/ directory (deleting the file 'createimg.log' should be sufficient) and they are created newly. > > The documentation says "The size of the legend image is NOT known prior to > creation.." and "...legend components are built automatically from class > objects from individual layers..." > > The reason I am asking this is following: I am using a PIXMAP symbol to > show some points on the map. If I set the SIZE in the CLASS section to be > small enough, then the symbol "Fits" the legend box correctly, but it is > not big enough for showing it on the map. If I increase the SIZE, the > symbol is shown on the map as I like, but then it doesn't "fit" to legend > box and I can only see its portion. Perhaps with PIXMAP you do not always get the correct result, but that's a question of Mapscript. So if you think legend icons created with $class->createLegendIcon() then you ask this on the Mapserver mailing list. As a manual workaround you can let the legend icons be created in a correct size and then specify them as KEYIMAGE for every class in the map file. Afterwards set the size again for correct display on the map. > > So, is there any way to solve this or it is just a mapserver > question/feature, that cannot be changed through p.mapper? > > thans very much > > regards, dejan ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users