There are two things here: addition of the confirm() check, and addition of the removeAllFeatures() call. I think this should be a mode or a different drawing function, then this could be pushed upstream (give users both options - effectively insert or replace)