After upgrading to the new ArcGIS API for JavaScript 4.18, calling the function setPaintProperties of a VectorTileLayer raises the following exception:
Uncaught TypeError: can't convert undefined to object
G VectorTileLayerView2D.js:267
attach VectorTileLayerView2D.js:273
emit (index):234
emit (index):234
emit (index):235
setLayoutProperties VectorTileLayer.js:184
React 5
unstable_runWithPriority scheduler.development.js:646
React 3
workLoop scheduler.development.js:590
flushWork scheduler.development.js:545
performWorkUntilDeadline scheduler.development.js:157
js scheduler.development.js:180
js scheduler.development.js:843
Webpack 21
VectorTileLayerView2D.js:267:195
G VectorTileLayerView2D.js:267
attach VectorTileLayerView2D.js:273
emit (index):234
forEach self-hosted:206
emit (index):234
emit (index):235
setLayoutProperties VectorTileLayer.js:184
React 5
unstable_runWithPriority scheduler.development.js:646
React 3
workLoop scheduler.development.js:590
flushWork scheduler.development.js:545
performWorkUntilDeadline scheduler.development.js:157
(Async: EventHandlerNonNull)
js scheduler.development.js:180
js scheduler.development.js:843
I have tried calling the same function with the following PaintProps objects, but I get always the same exception:
{visibility: "visible"}{}{
"text-allow-overlap": false,
"text-anchor": "top",
"text-field": "{field}",
"text-font": Array [ "arial-regular" ],
"text-justify": "center",
"text-line-height": 1,
"text-offset": Array [ 0, 0 ],
"text-padding": 0,
"text-size": 18,
visibility: "visible"
}