i was wondering if i could get some assistance here,currently im able to buffer in the map,but i want it to be done only upon clicking on a button,i tried putting the codes in the button itself but it dosent work,i appreciate if someone could reply to my post.
// If buffer spatial reference is GCS and unit is linear, geometry service will do geodesic buffering BufferParameters bufferParams = new BufferParameters() { //Unit = LinearUnit.StatuteMile, Unit = LinearUnit.Kilometer, BufferSpatialReference = new SpatialReference(4326), OutSpatialReference = MyMap.SpatialReference }; bufferParams.Features.Add(graphic); bufferParams.Distances.Add(500);