Currently, the layer constructor is used both to create a new layer source and to read from existing layer source.