I have one problem in edit vertices.edit vertices is working fine only problem is to complete editing user has to click on feature i want something if after editing line or polygon if user click outside any where on map it should ask me to save the vertices i mean it should change the mode from edit to complete.