From edd377dbf5ff4fc8d70cff2d285cb35951686ce8 Mon Sep 17 00:00:00 2001 From: Melvyn Hills Date: Wed, 8 Nov 2023 12:58:13 +0100 Subject: [PATCH] Enable pulsing on iOS native user location --- ios/RNMBX/RNMBXNativeUserLocation.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ios/RNMBX/RNMBXNativeUserLocation.swift b/ios/RNMBX/RNMBXNativeUserLocation.swift index fdfbadc76..df0667e4e 100644 --- a/ios/RNMBX/RNMBXNativeUserLocation.swift +++ b/ios/RNMBX/RNMBXNativeUserLocation.swift @@ -17,7 +17,9 @@ public class RNMBXNativeUserLocation : UIView, RNMBXMapComponent { func _applySettings(_ map: RNMBXMapView) { let location = map.mapView.location! - location.options.puckType = .puck2D(.makeDefault(showBearing: iosShowsUserHeadingIndicator)) + var configuration: Puck2DConfiguration = .makeDefault(showBearing: iosShowsUserHeadingIndicator) + configuration.pulsing = .default + location.options.puckType = .puck2D(configuration) if (iosShowsUserHeadingIndicator) { #if RNMBX_11 location.options.puckBearing = .heading