We're updating the issue view to help you get more done. 

MBStyle should create single NamedLayer when possible

Description

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.

Environment

None

Status

Assignee

Unassigned

Reporter

Torben Barsballe

Triage

None

Fix versions

Affects versions

None

Priority

Medium