C#-Mapscript: Bug in mapObj.insertLayer()

Christian Wilmes C.Wilmes at GMX.DE
Tue Jul 18 05:06:09 EDT 2006


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



More information about the mapserver-users mailing list