Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Expose styling options for the user location annotation. #403

Merged
merged 7 commits into from
Sep 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clarify documentation.
  • Loading branch information
fabian-guerra committed Sep 2, 2020
commit f950630de6ce4ad5717f499dbc38f892f2cb3d66
8 changes: 1 addition & 7 deletions platform/ios/src/MGLMapViewDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)mapViewDidStopLocatingUser:(MGLMapView *)mapView;

/**
Asks the delegate styling options for the default user location annotation
views for each `MGLMapView.userTrackingMode`.

When using this delegate set the following constants to a default value:
`MGLUserLocationAnnotationViewStyle.puckShadowOpacity` = `0.25`
`MGLUserLocationAnnotationViewStyle.approximateHaloOpacity` = `0.25`
`MGLUserLocationAnnotationViewStyle.approximateHaloBorderWidth` = `2.0`
Asks the delegate styling options for each default user location annotation view.

This method is called many times during gesturing, so you should avoid performing
complex or performance-intensive tasks in your implementation.
Expand Down