Function parse_text_field_from_layout

Source
fn parse_text_field_from_layout(layout: &Value) -> Option<String>
Expand description

Extract a text-field property name from a layout JSON value. Handles both:

  • "text-field": "{NAME}" (constant string)
  • "text-field": {"stops": [[2, "{ABBREV}"], [4, "{NAME}"]]} (zoom-dependent)