Zhonghai, There was problem with insertLayer according to http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1838
The problem was recently fixed (4.10.0-beta1 should contain the fix). Is the removeLayer problem also exist for the other layers? (not for the dynamically added layers) Which mapserver version are you using? Could you include a code sample according to the problem? Tamas 2006/8/28, Zhonghai Wang <[EMAIL PROTECTED]>:
Hi guys, I am trying to remove an inline feature using the map.removeLayer(index), but it seems that this method does not work. The inline feature layer is created on the fly, not in the mapfile hard coded. Does anyone ever used this function successfully? There may also be some problems with the map.insertLayer(layerObj, index), only map.insertLayer(layerObj,-1) works for me, I can not specify the index. thanks for any hints to solve my problem. Zhonghai
