We  can  do something  by our variable 'mystatus' ,then  allow us  to
edit polygons and polylines.
Of course,we  can  do something  by our variable 'mystatus' ,then
allow us  not to edit polygons and polylines.

detail:
1. when set mystatus=1, allow us  to edit polygons and polylines.
 We  loop every polygons and polylines,
currentPolygon.enableEditing({onEvent: "mouseover"});
currentPolygon.disableEditing({onEvent: "mouseout"});
currentPolygon.enableDrawing({onEvent: "mouseover"});

2.when set mystatus=0, allow us not to edit polygons and polylines.
GEvent.clearListeners(currentPolygon, "mouseover");
GEvent.clearListeners(currentPolygon, "mouseout");


see also http://wdzwdz.itpub.net/post/197/472599

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to