File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 3232@property (nonatomic , assign ) BOOL zoomEnabled;
3333@property (nonatomic , assign ) BOOL rotateEnabled;
3434@property (nonatomic , assign ) BOOL pitchEnabled;
35+ @property (nonatomic , assign ) BOOL showsUserLocation;
3536
3637- (BOOL )didTapMarker : (GMSMarker *)marker ;
3738- (void )didTapAtCoordinate : (CLLocationCoordinate2D)coordinate ;
Original file line number Diff line number Diff line change @@ -236,4 +236,12 @@ - (void)setShowsCompass:(BOOL)showsCompass {
236236- (BOOL )showsCompass {
237237 return self.settings .compassButton ;
238238}
239+
240+ - (void )setShowsUserLocation : (BOOL )showsUserLocation {
241+ self.myLocationEnabled = showsUserLocation;
242+ }
243+
244+ - (BOOL )showsUserLocation {
245+ return self.myLocationEnabled ;
246+ }
239247@end
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ - (UIView *)view
5454RCT_EXPORT_VIEW_PROPERTY(rotateEnabled, BOOL )
5555RCT_EXPORT_VIEW_PROPERTY(scrollEnabled, BOOL )
5656RCT_EXPORT_VIEW_PROPERTY(pitchEnabled, BOOL )
57+ RCT_EXPORT_VIEW_PROPERTY(showsUserLocation, BOOL )
5758RCT_EXPORT_VIEW_PROPERTY(onPress, RCTBubblingEventBlock)
5859RCT_EXPORT_VIEW_PROPERTY(onLongPress, RCTBubblingEventBlock)
5960RCT_EXPORT_VIEW_PROPERTY(onChange, RCTBubblingEventBlock)
You can’t perform that action at this time.
0 commit comments