Hi All, I think there is a bug in the method for mapObj.insertLayer(layerObj layer, int index). It only works for index = -1.
I think reason for that might be in mapobject.c in the function msInsertLayerm, line 525: map->layers[map->numlayers].index = nIndex; Is it possible, that something like map->layers[nIndex].index = nIndex; is correct? Best Regards Christian -- Echte DSL-Flatrate dauerhaft für 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
