geostyler / geostyler-style

Style declaration files for the GeoStyler project
https://geostyler.github.io/geostyler-style/docs/master/
BSD 2-Clause "Simplified" License
16 stars 15 forks source link

Add zoom/scale expression #640

Open jansule opened 1 week ago

jansule commented 1 week ago

Feature Request

Is your feature request related to a problem? Please describe.

Some formats/styles may contain zoom/scale based expressions that are currently not supported in geostyler-style.

E.g. see following mapbox snippet:

"paint": {
      "line-width": [
          "interpolate",
          ["linear"],
          ["zoom"], // <--------- zoom level as input for the interpolate expression
          12,
          2,
          15,
          4,
          19,
          35
      ]
}

Describe the solution you'd like

It would be great to include this into geostyler-style.

Please note that SLD does not seem to support zoom/scale based expressions. There, the scaleDenominators seem to be the only way of handling different styles based on zoom/scale.

Describe alternatives you've considered ...

Additional context ...