rem: this.parseTilelayerXML(m, xml); 
add: this.parseTilelayerXML(t, xml); t.maptype_id = this.editSetId;  var s; var mts = this.Map.maptypes; for(a=0; a<mts.length; a++){ if ( ( mts[a] != null ) && ( mts[a].maptype_id == this.editSetId ) ){ s = a; break; } }; 
context: 	"updateTilelayer": function(rslt){	    var xml = rslt.responseXML;									//the marker data we are changing		var n = this.editObjectN;				/*  *******  */		// need maptypes index here		// var i = ;		/*  *******  */		var m = this.Map.maptype[i].tilelayers[n];		//add the xml data to the marker record		this.parseTilelayerXML(m, xml);				//remove the related maptype		//re-add the maptype		/*  *******  */		// probably needs a ref to parent maptype		/*  *******  */		//add the tilelayer		this.Map.addTilelayer(n);				/*  *******  */		// update the maptypes menus ?		/*  *******  */	},
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1713/65ca0f252dbca8269c9a8956d95003b849140ee2/Edit.js/buggy/templates/Edit.js