Hi list, After changing the layer drawing order programatically using mapscript, the map is drawn properly but the legend image reflects the old layer drawing order. Is this a bug or a feature? Tamas Szekeres