-
Notifications
You must be signed in to change notification settings - Fork 609
Errors when enabling editing in MapLibre 5.x #1504
Copy link
Copy link
Open
Labels
Description
When I enable editing in MapLibre (maplibre-gl-js) (versions 5.x), I get the following errors:
Error: layers.gl-draw-lines.cold.paint.line-dasharray[2][0]: Expression name must be a string, but found number instead. If you wanted a literal array, use ["literal", [...]].
at Object.us [as B] (validate_style.ts:48:41)
at Ai (style.ts:41:5)
at ki._validate (style.ts:1749:16)
at ki.addLayer (style.ts:1112:22)
at e.Map.addLayer (map.ts:2711:20)
at setup.js:92:17
at Array.forEach (<anonymous>)
at Object.addLayers (setup.js:91:26)
at Object.connect (setup.js:35:13)
at Tt.onAdd (setup.js:63:15)
Error: layers.gl-draw-lines.hot.paint.line-dasharray[2][0]: Expression name must be a string, but found number instead. If you wanted a literal array, use ["literal", [...]].
at Object.us [as B] (validate_style.ts:48:41)
at Ai (style.ts:41:5)
at ki._validate (style.ts:1749:16)
at ki.addLayer (style.ts:1112:22)
at e.Map.addLayer (map.ts:2711:20)
at setup.js:92:17
at Array.forEach (<anonymous>)
at Object.addLayers (setup.js:91:26)
at Object.connect (setup.js:35:13)
at Tt.onAdd (setup.js:63:15)
This happens with versions of mapbox-gl-draw > 1.5.x, it does not happen in version 1.4.3.
Reactions are currently unavailable