rem: this.Map.map.panTo(point); f.map_lng.value = point.lng(); f.map_lat.value = point.lat(); 
add: this.panTo(point); f['geo[lng]'].value = point.lng(); f['geo[lat]'].value = point.lat(); 
context: BitMap.Edit.prototype.addAssistant = function(a, b){ 	this.removeAssistant(); 	if (a == 'polyline'){		this.bModForm = $('polylineform_'+b); 		this.bModPData = this.bModForm.points_data; 		alert ('Polyline drawing assistant activated for '+ this.bModForm.name.value + ' polyline. \n Click to Draw!');				this.bLastpoint = null;	  this.bTempPoints = [];  	this.bTP = new GPolyline(this.bTempPoints);  	this.Map.map.addOverlay(bTP);		//create polyline object from points and add to map    	this.bAssistant = GEvent.addListener(this.Map.map, "click", function(overlay,point) {                		if(this.bLastpoint && this.bLastpoint.x==point.x && this.bLastpoint.y==point.y) return;                		this.bLastpoint = point;                		                		this.bTempPoints.push(point);                		this.Map.map.removeOverlay(bTP);                		this.bTP = new GPolyline(this.bTempPoints);                		this.Map.map.addOverlay(bTP);                		for(var i=0; i<this.bTempPoints.length; i++){											if (i == 0){												msg = this.bTempPoints[i].x + ', ' + this.bTempPoints[i].y;												}else{                				msg += ', ' + this.bTempPoints[i].x + ', ' + this.bTempPoints[i].y;											}                		}										                		this.bModPData.value = msg;              	});	} 	if (a == 'polygon'){		this.bModForm = $('polygonform_'+b);  	if (this.bModForm.circle.options[this.bModForm.circle.selectedIndex].value == 'true'){      	this.bModPData = this.bModForm.circle_center;     	alert ('Circle-Center drawing assistant activated for '+ this.bModForm.name.value + ' polygon. \n Click to marker the center of your circle!');            	this.bAssistant = GEvent.addListener(this.Map.map, "click", function(overlay, point){                      if (point) {                     		this.Map.map.panTo(point);                     		this.bModPData.value = point.lng() + ", " + point.lat();                         }                       });  	}else{   		this.bModPData = this.bModForm.points_data;   		alert ('Polygon drawing assistant activated for '+ this.bModForm.name.value + ' polygon. \n Click to draw the outline. \n\nThe final connection will automatically be \ncompleted for you, so don\'t worry about that.');   		this.bLastpoint = null;   	 	this.bTempPoints = [];     	this.bTP = new GPolyline(this.bTempPoints);     	this.Map.map.addOverlay(bTP);		//create polyline object from points and add to map          	this.bAssistant = GEvent.addListener(this.Map.map, "click", function(overlay,point) {                		if(this.bLastpoint && this.bLastpoint.x==point.x && this.bLastpoint.y==point.y) return;                		this.bLastpoint = point;                		                		this.bTempPoints.push(point);                		this.Map.map.removeOverlay(this.bTP);                		this.bTP = new GPolyline(this.bTempPoints);                		this.Map.map.addOverlay(this.bTP);                		for(var i=0; i<this.bTempPoints.length; i++){								if (i == 0){									msg = this.bTempPoints[i].x + ', ' + this.bTempPoints[i].y;								}else{                				msg += ', ' + this.bTempPoints[i].x + ', ' + this.bTempPoints[i].y;								}                		}										                		this.bModPData.value = msg;              	});		}	}		if (a == 'marker'){		this.bModForm = $('markerform_'+b); 		this.bModMLat = this.bModForm.marker_lat; 		this.bModMLng = this.bModForm.marker_lng;		alert ('Marker ploting assistant activated for '+ this.bModForm.title.value + ' marker. \n Click to Position!');	  	this.bAssistant = GEvent.addListener(this.Map.map, "click", function(overlay, point){      if (point) {  		if (this.bTP != null) {        	this.Map.map.removeOverlay(this.bTP);  		}  		this.bTP = new GMarker(point);  		this.Map.map.addOverlay(this.bTP);  		this.Map.map.panTo(point);  		this.bModMLat.value = point.lat();  		this.bModMLng.value = point.lng();      }    });	}	if (a == 'map'){		f = $('mapform');		alert ('Map centering assistant activated. \n Click to get center lat and lng values!');	  	this.bAssistant = GEvent.addListener(this.Map.map, "click", function(overlay, point){      if (point) {  		this.Map.map.panTo(point);  		f.map_lng.value = point.lng();  		f.map_lat.value = point.lat();      }    });	}}	
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/2b2cfe6d15edf549da170989ee8132e5b4b4bcd2/Edit.js/buggy/templates/Edit.js