rem: if (point) { this.Map.map.panTo(point); this.bModPData.value = point.lng() + ", " + point.lat(); } }); 
add: if (point) { this.Map.map.panTo(point); this.bModPData.value = point.lng() + ", " + point.lat(); } }); 
context: 	"addAssistant": function(a, b){	 	this.removeAssistant();	 	//polyline assistant	 	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;	              	});		}		 	//polygon assistant	 	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;	              	});			}		}	 	//marker assistant				if (a == 'marker'){			var f = $('edit-marker-form');			alert ('Marker ploting assistant activated for '+ f.title.value + ' marker. \n Click to Position!');			this.bAssistant = GEvent.addListener(this.Map.map, "click", function(overlay, point){			  if (point) {				if (this.TempOverlay != null) {					this.removeOverlay(this.TempOverlay);				}				this.TempOverlay = new GMarker(point);				this.addOverlay(this.TempOverlay);				this.panTo(point);				f['geo[lng]'].value = point.lng();				f['geo[lat]'].value = point.lat();			  }			});		}			if (a == 'map'){			f = $('edit-map-form');			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.panTo(point);				f['geo[lng]'].value = point.lng();				f['geo[lat]'].value = point.lat();			  }			});		}	},
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1713/75e730cccb0d880fda545e3a30c9583ee38f7898/Edit.js/buggy/templates/Edit.js