Commit 4e3dcec
MapLibre 13.3.1 rejects a zoom() expression nested inside anything but a
top-level step/interpolate ("zoom expression may only be used as input to
a top-level step or interpolate expression"). The route-stop circle layer
wrapped its zoom()-driven radius interpolation in product() to derive the
outer stroke width and the selected inner-circle radius, so those two
layers failed validation under MapLibre 13 — circles lost their stroke
ring and selected stops lost zoom-scaled highlighting. MapLibre 11.5.2
tolerated the nesting.
Fold the scale factor into each interpolation stop's output instead of
wrapping the whole interpolation, keeping zoom() at the top level. For a
linear interpolation, scaling each endpoint is mathematically identical to
scaling the interpolation, including the clamped regions outside the band.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 6c71ddd commit 4e3dcec
1 file changed
Lines changed: 18 additions & 15 deletions
File tree
- onebusaway-android/src/maplibre/java/org/onebusaway/android/map/maplibre
Lines changed: 18 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | | - | |
| 70 | + | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 74 | + | |
79 | 75 | | |
80 | 76 | | |
81 | 77 | | |
| |||
84 | 80 | | |
85 | 81 | | |
86 | 82 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 83 | + | |
93 | 84 | | |
94 | 85 | | |
95 | 86 | | |
| |||
147 | 138 | | |
148 | 139 | | |
149 | 140 | | |
150 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
| 153 | + | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
157 | 160 | | |
158 | 161 | | |
159 | 162 | | |
| |||
0 commit comments