| Issue 3842: | Bug: Circle.setEditable | |
| 2 people starred this issue and may be notified of changes. | Back to list |
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]
Status:
NeedsMoreInfo
Jan 12, 2012
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
Could you please link to the sample or upload an example file?
Feb 5, 2012
(No comment was entered for this change.)
Feb 19, 2012
(No comment was entered for this change.)
Status:
Fixed
|
|
| ► Sign in to add a comment |