Allow layer source to be set