Commit 2d43e11
[maps-ios] Fix ornaments positioning (#10738)
We have reports of ornaments being positioned incorrectly when upgrading
to 11.18.
For indoor the positioning of ornaments changed to stacking(one
above/below another if in the same corner), which turns out to be not
working with our way of hiding ornament views(isHidden = true, which
does't remove views from layout participation so there are extra gaps if
there is a hidden view on the edge/middle).
We could either:
* fix gaps issue e.g. by placing them in a stack view(which removes
subviews from layout when hidden)
* revert to previous non-stacking positioning
In this PR I have chosen to revert to the previous positioning, as for
some customers this will be a behavior breaking change.
This change was done for indoor selector view, so it stacks nicely below
any ornament it was positioned under. I suggest we address this the same
way as other ornaments - by adjusting offset, in this PR I the offset of
indoor selector to line up nicely under the compass, if the user changes
the position of the selector then it is on them to adjust margins for
proper alignment(same as with the rest of the ornaments).
Addresses https://mapbox.atlassian.net/browse/MAPSIOS-2122
mapbox/mapbox-maps-flutter#1110
cc @mapbox/maps-ios
cc @mapbox/sdk-platform
GitOrigin-RevId: 1d3e93076afbf04dcfeb3ebcd6be62ec7baa00711 parent f314ee6 commit 2d43e11
File tree
3 files changed
+35
-39
lines changed- Sources
- Examples/All Examples/Lab
- MapboxMaps/Ornaments
3 files changed
+35
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
| |||
207 | 206 | | |
208 | 207 | | |
209 | 208 | | |
210 | | - | |
211 | 209 | | |
212 | 210 | | |
213 | 211 | | |
| |||
274 | 272 | | |
275 | 273 | | |
276 | 274 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | 275 | | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
295 | 308 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | 309 | | |
317 | 310 | | |
0 commit comments