GoogleRidesharingConsumer Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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.
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.
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.
Parameters
polylineType
|
Retrieves polyline style options for this type.
|
-
Retrieves marker style options for a marker type.
Parameters
markerType
|
Retrieves marker stlye options for this type.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMTCConsumerMapStyleCoordinator\u003c/code\u003e is a container class for customizing the UI elements of a \u003ccode\u003eGMTCMapView\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can set custom style options for different polyline types using the \u003ccode\u003esetPolylineStyleOptions:polylineType:\u003c/code\u003e method, and the option to revert to the default values by setting them to \u003ccode\u003enil\u003c/code\u003e is available.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers a way to customize marker styles with the \u003ccode\u003esetMarkerStyleOptions:markerType:\u003c/code\u003e method and also allows reversion to default options.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epolylineStyleOptionsForType:\u003c/code\u003e and \u003ccode\u003emarkerStyleOptionsForType:\u003c/code\u003e methods enable the retrieval of the current polyline and marker style options for specific types.\u003c/p\u003e\n"]]],[],null,["# GoogleRidesharingConsumer Framework Reference\n\nGMTCConsumerMapStyleCoordinator\n===============================\n\n @interface GMTCConsumerMapStyleCoordinator : NSObject\n\nContainer class for the custom UI options for elements of the GMTCMapView.\n- `\n ``\n ``\n `\n\n ### [-setPolylineStyleOptions:polylineType:](#/c:objc(cs)GMTCConsumerMapStyleCoordinator(im)setPolylineStyleOptions:polylineType:)\n\n `\n ` \n Sets the polyline style options for a polyline type. Setting the options to nil will revert the\n options to the default values. Note that the given `polylineStyleOptions` is internally copied. \n\n #### Declaration\n\n Swift \n\n func setPolylineStyleOptions(_ polylineStyleOptions: ../Classes/GMTCPolylineStyleOptions.html?, polylineType: ../Enums/GMTCPolylineType.html)\n\n Objective-C \n\n - (void)setPolylineStyleOptions:\n (nullable ../Classes/GMTCPolylineStyleOptions.html *)polylineStyleOptions\n polylineType:(../Enums/GMTCPolylineType.html)polylineType;\n\n #### Parameters\n\n |------------------------------|--------------------------------------------|\n | ` `*polylineStyleOptions*` ` | Polyline style options that are being set. |\n | ` `*polylineType*` ` | Polyline type that is being set |\n\n- `\n ``\n ``\n `\n\n ### [-setMarkerStyleOptions:markerType:](#/c:objc(cs)GMTCConsumerMapStyleCoordinator(im)setMarkerStyleOptions:markerType:)\n\n `\n ` \n Sets the marker style options for a marker type. Setting the options to nil will revert the\n options to the default values. Note that the given `markerStyleOptions` is internally copied. \n\n #### Declaration\n\n Swift \n\n func setMarkerStyleOptions(_ markerStyleOptions: ../Classes/GMTCMarkerStyleOptions.html?, markerType: ../Enums/GMTCCustomizableMarkerType.html)\n\n Objective-C \n\n - (void)setMarkerStyleOptions:\n (nullable ../Classes/GMTCMarkerStyleOptions.html *)markerStyleOptions\n markerType:(../Enums/GMTCCustomizableMarkerType.html)markerType;\n\n #### Parameters\n\n |----------------------------|------------------------------------------|\n | ` `*markerStyleOptions*` ` | Marker style options that are being set. |\n | ` `*markerType*` ` | Marker type that is being set |\n\n- `\n ``\n ``\n `\n\n ### [-polylineStyleOptionsForType:](#/c:objc(cs)GMTCConsumerMapStyleCoordinator(im)polylineStyleOptionsForType:)\n\n `\n ` \n Retrieves polyline style options for a type of polyline. \n\n #### Declaration\n\n Swift \n\n func polylineStyleOptions(for polylineType: ../Enums/GMTCPolylineType.html) -\u003e ../Classes/GMTCPolylineStyleOptions.html\n\n Objective-C \n\n - (nonnull ../Classes/GMTCPolylineStyleOptions.html *)polylineStyleOptionsForType:\n (../Enums/GMTCPolylineType.html)polylineType;\n\n #### Parameters\n\n |----------------------|-------------------------------------------------|\n | ` `*polylineType*` ` | Retrieves polyline style options for this type. |\n\n- `\n ``\n ``\n `\n\n ### [-markerStyleOptionsForType:](#/c:objc(cs)GMTCConsumerMapStyleCoordinator(im)markerStyleOptionsForType:)\n\n `\n ` \n Retrieves marker style options for a marker type. \n\n #### Declaration\n\n Swift \n\n func markerStyleOptions(for markerType: ../Enums/GMTCCustomizableMarkerType.html) -\u003e ../Classes/GMTCMarkerStyleOptions.html\n\n Objective-C \n\n - (nonnull ../Classes/GMTCMarkerStyleOptions.html *)markerStyleOptionsForType:\n (../Enums/GMTCCustomizableMarkerType.html)markerType;\n\n #### Parameters\n\n |--------------------|-----------------------------------------------|\n | ` `*markerType*` ` | Retrieves marker stlye options for this type. |"]]