From 1341d89d0b8d736e1735452e5250f9616493b603 Mon Sep 17 00:00:00 2001 From: Samuel Brucksch Date: Fri, 28 Aug 2026 13:39:40 +0200 Subject: [PATCH] fix(ios): register style images after the style has loaded RNMBXImages did not override waitForStyleLoad, so it was added on subview insert. With an async styleURL that happens before the style has loaded, and because RNMBXMapView marks the feature entry addedToMap, addFeaturesToMap skips it on .styleLoaded - the images never reach the loaded style. Layers mask this via the style's image-missing event, but RNMBXNativeUserLocation reads style.imageExists directly and silently falls back to Puck2DConfiguration.makeDefault(). --- ios/RNMBX/RNMBXImages.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ios/RNMBX/RNMBXImages.swift b/ios/RNMBX/RNMBXImages.swift index 797cf3e37..e28167bc4 100644 --- a/ios/RNMBX/RNMBXImages.swift +++ b/ios/RNMBX/RNMBXImages.swift @@ -68,7 +68,10 @@ open class RNMBXImages : UIView, RNMBXMapComponent { } // MARK: - RNMBXMapComponent - // Uses default implementation from RNMBXMapComponentProtocol extension (returns false) + + public func waitForStyleLoad() -> Bool { + return true + } public func addToMap(_ map: RNMBXMapView, style: Style) { self.style = style