mapbox / mapbox-gl-style-spec

76 stars 38 forks source link

Non-categorical functions with string stops? #587

Closed jfirebaugh closed 7 years ago

jfirebaugh commented 7 years ago

How does this function work? E.g. what is the evaluated value for a feature whose p property is "fuzz"?

{
  "type": "exponential",
  "property": "p",
  "stops": [
    ["foo", 0],
    ["bar", 100]
  ]
}

What about this one? Is it valid?

{
  "type": "interval",
  "property": "p",
  "stops": [
    ["a", 0],
    ["å", 5],
    ["b", 10]
  ]
}

cc @lucaswoj

lucaswoj commented 7 years ago

String domains only make sense for categorical functions. exponential and interval functions require a numeric domain.