Repository navigation
Commit 44d37d2
authored
fix(images): register image views mounted after the map is ready (iOS) (#4423)
RNMBXImages wires its children into the style only from addToMap, through
addImageViews. An RNMBXImage inserted later is appended to imageViews but
never given `images`, so it never calls setImage and its name never reaches
the style. A SymbolLayer that references it falls back or renders nothing.
Applications work around it by remounting the whole <Images> block whenever
a new image appears, which tears down and re-snapshots every image already
on the map to add one.
addImageView now wires the image immediately when the component already has
a style. This is the iOS counterpart of #4283.1 parent 8a55c05 commit 44d37d2
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
0 commit comments