add clear layer if new geometry was drawn
add update layer if input has been changed