| When an MBStyle is converted to SLD, it should create a single NamedLayer wherever possible. MBStyle supports different source-layer}}s for each styled {{layer in the MBStyle. To support this in SLD, each layer is converted into its own NamedLayer, referencing the source-layer. Whenever there is a block of layer elements with the same source-layer in an mbstyle, they should be merged as separate FeatureTypeStyles within a single NamedLayer. Order must still be preserved, so two layer}}s with the same {{source-layer that are separated by a layer with a different source-layer should not be merged. |