This requirement exists even if there is only one layer in the source. Bonus: Maybe we can also make assumptions there for convenience?
This led to at least one implementation making the source layer optional (see MGLVectorStyleLayer, where sourceLayerIdentifier is nullable and thus incorrectly optional).
Currently, a style layer
source-layer
is optional:https://www.mapbox.com/mapbox-gl-style-spec/#layer-source-layer
This isn't consistent with vector layers requiring the
source-layer
to be specified:https://www.mapbox.com/mapbox-gl-style-spec/#sources-vector
This requirement exists even if there is only one layer in the source. Bonus: Maybe we can also make assumptions there for convenience?
This led to at least one implementation making the source layer optional (see
MGLVectorStyleLayer
, wheresourceLayerIdentifier
isnullable
and thus incorrectly optional)./cc @1ec5 @boundsj