My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3842: Bug: Circle.setEditable
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  [email protected]
Closed:  Feb 2012


Sign in to add a comment
 
Reported by [email protected], Jan 12, 2012
if a timeout process calls setEditable(false) on a circle while the user has already started moving/editing the circle, other event handlers of the maps/markers do not get triggered anymore. Also the pointer gets stuck.
Jan 12, 2012
Project Member #1 [email protected]
Can you please include a link to your demo that shows this.
Status: NeedsMoreInfo
Jan 12, 2012
#2 [email protected]
function cancelCircleEdit(){ // This is to set editable to false on the circle in case the user leaves the circle or timeout is reached
	try{
		if (mainMap.circle != null){
			mainMap.circle.setEditable(false);
		}
	} catch(cx){}
}

function showCircle(radius){ // displays the circle
				circle = new google.maps.Circle({
	    		      			map: this.map,
		    		      		radius: radius,
					    	center: mainMap.center,
					    	fillColor: "#00FF00",
					    	fillOpacity: 0.03,
						clickable:true,
					    	strokeWeight: 0.5,
						zIndex:1
				});	
								
	this.circleOverListner = google.maps.event.addDomListener(circle, 'mouseover', function() {
  		  		circle.setEditable(true);
				mainMap.circleEditTimer = setTimeout('cancelCircleEdit();',3000);	});

	this.circleOutListner = google.maps.event.addDomListener(circle, 'mouseout', function() {
				if (mainMap.circleEditTimer != null){
						clearTimeout(mainMap.circleEditTimer);
				}
  				cancelCircleEdit();		
  	});

}




Jan 23, 2012
#3 [email protected]
Could you please link to the sample or upload an example file?
Feb 5, 2012
Project Member #4 [email protected]
(No comment was entered for this change.)
Status: Confirmed
Owner: [email protected]
Labels: Internal-5967339
Feb 19, 2012
#5 [email protected]
(No comment was entered for this change.)
Status: Fixed
Sign in to add a comment

Powered by Google Project Hosting