parse

Parse a Mapbox GL style document into an MvtRuleBasedStyle. The returned style's rules paint in the order the layers appear in the document — same paint-order semantics as Mapbox GL itself.

Throws

on unsupported expression operators or malformed documents. The message names the offending property and value so the caller can isolate the unsupported feature.