Update the source when the base layer change.