Hello all Iam trying figure out how to control the size ( width and height in pixel ) of the legend if I use the following, it ignores the width and height properties and makes its own width and height that fit the image is there any way that I can control it ? $map->set("height", 400); $map->set("width", 400); $image=$map->drawLegend(); Jeppe