rem: map.removeControl(smallcontrols); map.removeControl(largecontrols); map.removeControl(zoomcontrols); 
add: Map.map.removeControl(smallcontrols); Map.map.removeControl(largecontrols); Map.map.removeControl(zoomcontrols); 
context: 	 BitMap.Edit.updateMap = function(rslt){	    //@todo change this - bad harding coded ref to the map data - not nice      var Map = BitMap.MapData[0].Map;	       var xml = rslt.responseXML;				 		//shorten var names			var id = xml.documentElement.getElementsByTagName('gmap_id');			Map.id = id[0].firstChild.nodeValue;			 			var t = xml.documentElement.getElementsByTagName('title');			Map.title = t[0].firstChild.nodeValue;			var d = xml.documentElement.getElementsByTagName('desc');			Map.description = d[0].firstChild.nodeValue;			var dt = xml.documentElement.getElementsByTagName('data');			var data = dt[0].firstChild.nodeValue;	 		Map.data = data;			var pdt = xml.documentElement.getElementsByTagName('parsed_data');			var parsed_data = pdt[0].firstChild.nodeValue;	 		Map.parsed_data = parsed_data;			var w = xml.documentElement.getElementsByTagName('w');			Map.width = w[0].firstChild.nodeValue;			var h = xml.documentElement.getElementsByTagName('h');			Map.height = h[0].firstChild.nodeValue;						var lt = xml.documentElement.getElementsByTagName('lat');			Map.lat = parseFloat(lt[0].firstChild.nodeValue);			var ln = xml.documentElement.getElementsByTagName('lon');			Map.lng = parseFloat(ln[0].firstChild.nodeValue);			var z = xml.documentElement.getElementsByTagName('z');			Map.zoom = parseInt(z[0].firstChild.nodeValue);			var ss = xml.documentElement.getElementsByTagName('scale');			Map.scale = ss[0].firstChild.nodeValue;			var sc = xml.documentElement.getElementsByTagName('cont');			Map.zoom_control = sc[0].firstChild.nodeValue;			var sm = xml.documentElement.getElementsByTagName('typecon');			Map.type_control = sm[0].firstChild.nodeValue;			var oc = xml.documentElement.getElementsByTagName('overviewcont');			Map.overview_control = oc[0].firstChild.nodeValue;			var mt = xml.documentElement.getElementsByTagName('maptype');			Map.maptype = Map.Maptypes[mt[0].firstChild.nodeValue];						//replace everything	      var maptile = $('mymaptitle');      if (maptile){maptile.innerHTML=Map.title;}      var mapdesc = $('mymapdesc');      if (mapdesc){mapdesc.innerHTML=Map.description;}      $('mapcontent').innerHTML = Map.parsed_data;      var mapdiv = $('map');			if (Map.width !== '0' && Map.width !== 0){			   var newWidth = Map.width + "px";				}else{			   var newWidth = 'auto';				}			if (Map.height !== '0' && Map.height !== 0){			   var newHeight = Map.height + "px";				}else{			   var newHeight = 'auto';				}      if (mapdiv){mapdiv.style.width=newWidth; mapdiv.style.height=newHeight; map.onResize();}						map.setMapType(Map.maptype);			      //Add Map TYPE controls - buttons in the upper right corner  		if (Map.type_control == 'TRUE'){  		map.removeControl(typecontrols);  		map.addControl(typecontrols);  		}else{  		map.removeControl(typecontrols);  		}  		  		//Add Scale controls  		if (Map.scale == 'TRUE'){  		map.removeControl(scale);  		map.addControl(scale);  		}else{  		map.removeControl(scale);  		}  		      //Add Navigation controls - buttons in the upper left corner		  		map.removeControl(smallcontrols);  		map.removeControl(largecontrols);  		map.removeControl(zoomcontrols);  		if (Map.zoom_control == 's') {  		map.addControl(smallcontrols);  		}else if (bMapControl == 'l') {  		map.addControl(largecontrols);		  		}else if (bMapControl == 'z') {  		map.addControl(zoomcontrols);  		}						map.centerAndZoom(new GPoint(Map.lng, Map.lat), Map.zoom);						BitMap.Edit.editMap();	 }
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/cc6f22930d4e12134b6173f5ac3df158f26afdfa/Edit.js/buggy/templates/Edit.js