dojo.connect(layer, "onBeforeApplyEdits", prepareApplyEdits); function prepareApplyEdits(adds,updates,deletes) { var ok = true; if(adds==undefined && updates==undefined && deletes!=undefined){ if(confirm("Do you really want to delete those elements?")){ /** treatement for attributes **/ }else{ ok=false; } } if(!ok){ layer.clearSelection(); throw new Error(); } }
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.