AI-generated Key Takeaways
-
GMTCConsumerMapStyleCoordinator
is 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 tonil
is 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 : NSObject
Container 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
polylineStyleOptions
is internally copied.Declaration
Swift
func setPolylineStyleOptions(_ polylineStyleOptions: GMTCPolylineStyleOptions?, polylineType: GMTCPolylineType)
Objective-C
- (void)setPolylineStyleOptions: (nullable GMTCPolylineStyleOptions *)polylineStyleOptions polylineType:(GMTCPolylineType)polylineType;
Parameters
polylineStyleOptions
Polyline style options that are being set.
polylineType
Polyline 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
markerStyleOptions
is internally copied.Declaration
Swift
func setMarkerStyleOptions(_ markerStyleOptions: GMTCMarkerStyleOptions?, markerType: GMTCCustomizableMarkerType)
Objective-C
- (void)setMarkerStyleOptions: (nullable GMTCMarkerStyleOptions *)markerStyleOptions markerType:(GMTCCustomizableMarkerType)markerType;
Parameters
markerStyleOptions
Marker style options that are being set.
markerType
Marker type that is being set
-
Retrieves polyline style options for a type of polyline.
Declaration
Swift
func polylineStyleOptions(for polylineType: GMTCPolylineType) -> GMTCPolylineStyleOptions
Objective-C
- (nonnull GMTCPolylineStyleOptions *)polylineStyleOptionsForType: (GMTCPolylineType)polylineType;
Parameters
polylineType
Retrieves polyline style options for this type.
-
Retrieves marker style options for a marker type.
Declaration
Swift
func markerStyleOptions(for markerType: GMTCCustomizableMarkerType) -> GMTCMarkerStyleOptions
Objective-C
- (nonnull GMTCMarkerStyleOptions *)markerStyleOptionsForType: (GMTCCustomizableMarkerType)markerType;
Parameters
markerType
Retrieves marker stlye options for this type.