File tree 3 files changed +10
-0
lines changed
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 32
32
@property (nonatomic , assign ) BOOL zoomEnabled;
33
33
@property (nonatomic , assign ) BOOL rotateEnabled;
34
34
@property (nonatomic , assign ) BOOL pitchEnabled;
35
+ @property (nonatomic , assign ) BOOL showsUserLocation;
35
36
36
37
- (BOOL )didTapMarker : (GMSMarker *)marker ;
37
38
- (void )didTapAtCoordinate : (CLLocationCoordinate2D)coordinate ;
Original file line number Diff line number Diff line change @@ -236,4 +236,12 @@ - (void)setShowsCompass:(BOOL)showsCompass {
236
236
- (BOOL )showsCompass {
237
237
return self.settings .compassButton ;
238
238
}
239
+
240
+ - (void )setShowsUserLocation : (BOOL )showsUserLocation {
241
+ self.myLocationEnabled = showsUserLocation;
242
+ }
243
+
244
+ - (BOOL )showsUserLocation {
245
+ return self.myLocationEnabled ;
246
+ }
239
247
@end
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ - (UIView *)view
54
54
RCT_EXPORT_VIEW_PROPERTY(rotateEnabled, BOOL )
55
55
RCT_EXPORT_VIEW_PROPERTY(scrollEnabled, BOOL )
56
56
RCT_EXPORT_VIEW_PROPERTY(pitchEnabled, BOOL )
57
+ RCT_EXPORT_VIEW_PROPERTY(showsUserLocation, BOOL )
57
58
RCT_EXPORT_VIEW_PROPERTY(onPress, RCTBubblingEventBlock)
58
59
RCT_EXPORT_VIEW_PROPERTY(onLongPress, RCTBubblingEventBlock)
59
60
RCT_EXPORT_VIEW_PROPERTY(onChange, RCTBubblingEventBlock)
You can’t perform that action at this time.
0 commit comments