AI-generated Key Takeaways
-
GMTCConsumerMapStyleCoordinatoris a container class for customizing the UI elements of aGMTCMapView. -
You can set custom style options for different polyline types using the
setPolylineStyleOptions:polylineType:method, and the option to revert to the default values by setting them tonilis available. -
The class offers a way to customize marker styles with the
setMarkerStyleOptions:markerType:method and also allows reversion to default options. -
The
polylineStyleOptionsForType:andmarkerStyleOptionsForType:methods enable the retrieval of the current polyline and marker style options for specific types.
GMTCConsumerMapStyleCoordinator
@interface GMTCConsumerMapStyleCoordinator : NSObjectContainer class for the custom UI options for elements of the GMTCMapView.
-
Sets the polyline style options for a polyline type. Setting the options to nil will revert the options to the default values. Note that the given
polylineStyleOptionsis internally copied.Declaration
Swift
func setPolylineStyleOptions(_ polylineStyleOptions: GMTCPolylineStyleOptions?, polylineType: GMTCPolylineType)Objective-C
- (void)setPolylineStyleOptions: (nullable GMTCPolylineStyleOptions *)polylineStyleOptions polylineType:(GMTCPolylineType)polylineType;Parameters
polylineStyleOptionsPolyline style options that are being set.
polylineTypePolyline type that is being set
-
Sets the marker style options for a marker type. Setting the options to nil will revert the options to the default values. Note that the given
markerStyleOptionsis internally copied.Declaration
Swift
func setMarkerStyleOptions(_ markerStyleOptions: GMTCMarkerStyleOptions?, markerType: GMTCCustomizableMarkerType)Objective-C
- (void)setMarkerStyleOptions: (nullable GMTCMarkerStyleOptions *)markerStyleOptions markerType:(GMTCCustomizableMarkerType)markerType;Parameters
markerStyleOptionsMarker style options that are being set.
markerTypeMarker type that is being set
-
Retrieves polyline style options for a type of polyline.
Declaration
Swift
func polylineStyleOptions(for polylineType: GMTCPolylineType) -> GMTCPolylineStyleOptionsObjective-C
- (nonnull GMTCPolylineStyleOptions *)polylineStyleOptionsForType: (GMTCPolylineType)polylineType;Parameters
polylineTypeRetrieves polyline style options for this type.
-
Retrieves marker style options for a marker type.
Declaration
Swift
func markerStyleOptions(for markerType: GMTCCustomizableMarkerType) -> GMTCMarkerStyleOptionsObjective-C
- (nonnull GMTCMarkerStyleOptions *)markerStyleOptionsForType: (GMTCCustomizableMarkerType)markerType;Parameters
markerTypeRetrieves marker stlye options for this type.