addScaleBar function

Add or remove a scale bar