I've applied MBstyle (gs-mbstyle-2.13.2, gt-mbstyle-19.3) extension for GeoServer (2.13.2) to style layers in mvt format. It works fine for simple styling but the problem occurs when I want to set the line-width of features based on the zoom level of the map display. I've used the following snippet but Goserver throws me this error:
org.geotools.mbstyle.parse.MBFormatException: "line-width" number from JSONArray not supported
{
"version": 8,
"name": "cyan line",
"layers": [
{
"id": "road",
"type": "line",
"source-layer":"road",
"paint": {
"line-color": "#0099cc",
"line-width": [
"interpolate",
['exponential', 2],
['zoom'],
5,1,
20,8
]
}
}
]
}
Is it something wrong with MBstyle version or something else causes the problem?
line-width
can take an array? none of the example show this docs.geoserver.org/stable/en/user/styling/mbstyle/cookbook/… – Ian Turton♦ Dec 13 '18 at 8:46