You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
-_...Add new stuff here..._
5
5
- Add note regarding visual artifacts that can appear with large width/size/offset values on vector tile layers, highlight remediation options ([#4160](https://github.com/maplibre/maplibre-gl-js/issues/4160))
6
6
7
+
- Implement data-driven styling support for `line-dasharray` ([#5812](https://github.com/mapbox/mapbox-gl-js/pull/5812))
8
+
7
9
### 🐞 Bug fixes
8
10
-_...Add new stuff here..._
9
11
- Replace additional spread operator (`...`) due to esbuild limitations ([#1297](https://github.com/maplibre/maplibre-style-spec/pull/1297))
"doc": "The projection definition type. Can be specified as a string, a transition state, or an expression.",
5675
-
"default": "mercator",
5675
+
"default": "mercator",
5676
5676
"property-type": "data-constant",
5677
5677
"transition": false,
5678
5678
"expression": {
@@ -6346,7 +6346,7 @@
6346
6346
"line-dasharray": {
6347
6347
"type": "array",
6348
6348
"value": "number",
6349
-
"doc": "Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.",
6349
+
"doc": "Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Zoom-dependent expressions will be evaluated only at integer zoom levels. The only way to create an array value is using `[\"literal\", [...]]`; arrays cannot be read from or derived from feature properties.",
Copy file name to clipboardExpand all lines: test/integration/style-spec/tests/functions.output.json
+16-20Lines changed: 16 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@
28
28
"line": 75
29
29
},
30
30
{
31
-
"message": "layers[6].paint.line-dasharray.stops[0][0]: number expected, string found",
31
+
"message": "layers[6].paint.line-dasharray.stops[0][0]: number expected, string found\nIf you intended to use a categorical function, specify `\"type\": \"categorical\"`.",
32
32
"line": 89
33
33
},
34
34
{
@@ -184,39 +184,35 @@
184
184
"line": 934
185
185
},
186
186
{
187
-
"message": "layers[52].paint.line-dasharray: Type array<number> is not interpolatable.",
187
+
"message": "layers[52].paint.heatmap-color: zoom expressions not supported",
188
188
"line": 943
189
189
},
190
190
{
191
-
"message": "layers[53].paint.heatmap-color: zoom expressions not supported",
192
-
"line": 952
191
+
"message": "layers[53].paint.heatmap-color: zoom functions not supported",
192
+
"line": 951
193
193
},
194
194
{
195
-
"message": "layers[54].paint.heatmap-color: zoom functions not supported",
196
-
"line": 960
195
+
"message": "layers[54].layout.line-join: \"feature-state\" data expressions are not supported with layout properties.",
196
+
"line": 959
197
197
},
198
198
{
199
-
"message": "layers[55].layout.line-join: \"feature-state\" data expressions are not supported with layout properties.",
200
-
"line": 968
199
+
"message": "layers[55].paint.line-width.stops[0][1]: expressions are not allowed in function stops.",
200
+
"line": 972
201
201
},
202
202
{
203
-
"message": "layers[56].paint.line-width.stops[0][1]: expressions are not allowed in function stops.",
204
-
"line": 981
203
+
"message": "layers[56]: layer \"invalid expression - color-relief-color must be zoom constant\" requires a raster-dem source",
204
+
"line": 983
205
205
},
206
206
{
207
-
"message": "layers[57]: layer \"invalid expression - color-relief-color must be zoom constant\" requires a raster-dem source",
208
-
"line": 992
207
+
"message": "layers[56].paint.color-relief-color: zoom expressions not supported",
208
+
"line": 986
209
209
},
210
210
{
211
-
"message": "layers[57].paint.color-relief-color: zoom expressions not supported",
212
-
"line": 995
211
+
"message": "layers[57]: layer \"invalid expression - color-relief-color must not be a function\" requires a raster-dem source",
212
+
"line": 991
213
213
},
214
214
{
215
-
"message": "layers[58]: layer \"invalid expression - color-relief-color must not be a function\" requires a raster-dem source",
216
-
"line": 1000
217
-
},
218
-
{
219
-
"message": "layers[58].paint.color-relief-color: zoom functions not supported",
220
-
"line": 1003
215
+
"message": "layers[57].paint.color-relief-color: zoom functions not supported",
0 commit comments