mapbox / mapbox-gl-style-spec

76 stars 38 forks source link

Validator needs to prohibit explicit exponential functions for piecewise-constant style properties #601

Closed jfirebaugh closed 7 years ago

jfirebaugh commented 7 years ago

This should be an error:

    {
      "id": "invalid explicit exponential function",
      "type": "fill",
      "source": "source",
      "source-layer": "layer",
      "paint": {
        "fill-antialias": {
          "property": "mapbox",
          "type": "exponential",
          "stops": [
            [
              0,
              true
            ],
            [
              1,
              false
            ]
          ]
        }
      }
    }