<iframe src="https://developers.devsite.google/frame/maps/documentation/javascript/reference/journey-sharing-ui-customization_cf1d1e883ea9721aed8161c966b40b2ad33a0b1f2bbd529ab166baf3cd22483b.frame" class="framebox inherit-locale redirect-iframe" allow="clipboard-write https://developers.devsite.google" allowfullscreen is-upgraded></iframe>

## [PolylineSetup](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#PolylineSetup)
typedef


typedef
`google.maps.journeySharing.PolylineSetup`

> [!WARNING]
> **[Deprecated:](https://developers.google.com/maps/deprecations.md.txt)** Polyline setup is deprecated. Use the `PolylineCustomizationFunction` methods for your location provider instead.

PolylineSetup type.   

The type accepts either a `PolylineSetupOptions` object, or a function that accepts a `DefaultPolylineSetupOptions` object and returns a `PolylineSetupOptions` object.   

If specifying a function, the function can and should modify the input's `defaultPolylineOptions` field, and return it as `polylineOptions` in the output `PolylineSetupOptions` object.

`PolylineSetupOptions|(function(DefaultPolylineSetupOptions): PolylineSetupOptions)`

## [PolylineSetupOptions](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#PolylineSetupOptions)
interface


interface
`google.maps.journeySharing.PolylineSetupOptions`

> [!WARNING]
> **[Deprecated:](https://developers.google.com/maps/deprecations.md.txt)** Polyline setup is deprecated. Use the `PolylineCustomizationFunction` methods for your location provider instead.

PolylineSetup options.

| ### Properties ||
|---|---|
| `polylineOptions` optional | **Type:** `PolylineOptions optional` Polyline options. |
| `visible` optional | **Type:** `boolean optional` Polyline visibility. |

## [DefaultPolylineSetupOptions](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#DefaultPolylineSetupOptions)
interface


interface
`google.maps.journeySharing.DefaultPolylineSetupOptions`

> [!WARNING]
> **[Deprecated:](https://developers.google.com/maps/deprecations.md.txt)** Polyline setup is deprecated. Use the `PolylineCustomizationFunction` methods for your location provider instead.

PolylineSetup default options.

| ### Properties ||
|---|---|
| `defaultPolylineOptions` | **Type:** `PolylineOptions` Default polyline options. |
| `defaultVisible` | **Type:** `boolean` Default polyline visibility. |

## [MarkerSetup](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#MarkerSetup)
typedef


typedef
`google.maps.journeySharing.MarkerSetup`

> [!WARNING]
> **[Deprecated:](https://developers.google.com/maps/deprecations.md.txt)** Marker setup is deprecated. Use the `MarkerCustomizationFunction` methods for your location provider instead.

MarkerSetup type.   

The type accepts either a `MarkerSetupOptions` object, or a function that accepts a `DefaultMarkerSetupOptions` object and returns a `MarkerSetupOptions` object.   

If specifying a function, the function can and should modify the input's `defaultMarkerOptions` field, and return it as `markerOptions` in the output `MarkerSetupOptions` object.

`MarkerSetupOptions|(function(DefaultMarkerSetupOptions): MarkerSetupOptions)`

## [MarkerSetupOptions](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#MarkerSetupOptions)
interface


interface
`google.maps.journeySharing.MarkerSetupOptions`

> [!WARNING]
> **[Deprecated:](https://developers.google.com/maps/deprecations.md.txt)** Marker setup is deprecated. Use the `MarkerCustomizationFunction` methods for your location provider instead.

MarkerSetup options.

| ### Properties ||
|---|---|
| `markerOptions` optional | **Type:** `MarkerOptions optional` Marker options. |

## [DefaultMarkerSetupOptions](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#DefaultMarkerSetupOptions)
interface


interface
`google.maps.journeySharing.DefaultMarkerSetupOptions`

> [!WARNING]
> **[Deprecated:](https://developers.google.com/maps/deprecations.md.txt)** Marker setup is deprecated. Use the `MarkerCustomizationFunction` methods for your location provider instead.

MarkerSetup default options.

| ### Properties ||
|---|---|
| `defaultMarkerOptions` | **Type:** `MarkerOptions` Default marker options. |

## [MarkerCustomizationFunctionParams](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#MarkerCustomizationFunctionParams)
interface


interface
`google.maps.journeySharing.MarkerCustomizationFunctionParams`

extended by `DeliveryVehicleMarkerCustomizationFunctionParams, PlannedStopMarkerCustomizationFunctionParams, ShipmentMarkerCustomizationFunctionParams, TaskMarkerCustomizationFunctionParams, TripMarkerCustomizationFunctionParams, TripWaypointMarkerCustomizationFunctionParams, VehicleMarkerCustomizationFunctionParams, VehicleWaypointMarkerCustomizationFunctionParams`

Parameters that are common to all marker customization functions. No object of this class is provided directly to any marker customization function; an object of one of its descendent classes is provided instead.

| ### Properties ||
|---|---|
| `defaultOptions` | **Type:** `MarkerOptions` The default options used to create this marker. |
| `isNew` | **Type:** `boolean` If true, the marker was newly created, and the marker customization function is being called for the first time, before the marker has been added to the map view. False otherwise. |
| `marker` | **Type:** `Marker` The marker. Any customizations should be made to this object directly. |

## [DeliveryVehicleMarkerCustomizationFunctionParams](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#DeliveryVehicleMarkerCustomizationFunctionParams)
interface


interface
`google.maps.journeySharing.DeliveryVehicleMarkerCustomizationFunctionParams`
extends `MarkerCustomizationFunctionParams`

extended by `PlannedStopMarkerCustomizationFunctionParams, TaskMarkerCustomizationFunctionParams`

Parameters specific to marker customization functions that apply options to delivery vehicle markers. Used by `FleetEngineDeliveryVehicleLocationProviderOptions.deliveryVehicleMarkerCustomization` and `FleetEngineDeliveryFleetLocationProviderOptions.deliveryVehicleMarkerCustomization`.

| ### Properties ||
|---|---|
| `vehicle` | **Type:** `DeliveryVehicle` The delivery vehicle represented by this marker. |

## [PlannedStopMarkerCustomizationFunctionParams](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#PlannedStopMarkerCustomizationFunctionParams)
interface


interface
`google.maps.journeySharing.PlannedStopMarkerCustomizationFunctionParams`
extends `DeliveryVehicleMarkerCustomizationFunctionParams, MarkerCustomizationFunctionParams`

Parameters specific to marker customization functions that apply options to markers representing planned stops. Used by `FleetEngineDeliveryVehicleLocationProviderOptions.plannedStopMarkerCustomization`.

| ### Properties ||
|---|---|
| `stopIndex` | **Type:** `number` The 0-based index of this stop in the list of remaining stops. |

## [TaskMarkerCustomizationFunctionParams](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#TaskMarkerCustomizationFunctionParams)
interface


interface
`google.maps.journeySharing.TaskMarkerCustomizationFunctionParams`
extends `DeliveryVehicleMarkerCustomizationFunctionParams, MarkerCustomizationFunctionParams`

Parameters specific to marker customization functions that apply options to markers representing planned or actual task locations. Used by `FleetEngineDeliveryVehicleLocationProviderOptions.taskMarkerCustomization` and `FleetEngineDeliveryVehicleLocationProviderOptions.taskOutcomeMarkerCustomization`.

| ### Properties ||
|---|---|
| `task` | **Type:** `Task` The task location represented by this marker. |

## [ShipmentMarkerCustomizationFunctionParams](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#ShipmentMarkerCustomizationFunctionParams)
interface


interface
`google.maps.journeySharing.ShipmentMarkerCustomizationFunctionParams`
extends `MarkerCustomizationFunctionParams`

Parameters specific to marker customization functions that apply options to markers representing shipment delivery vehicle and destination locations. Used by `FleetEngineShipmentLocationProviderOptions.deliveryVehicleMarkerCustomization` and `FleetEngineShipmentLocationProviderOptions.destinationMarkerCustomization`.

| ### Properties ||
|---|---|
| `taskTrackingInfo` | **Type:** `TaskTrackingInfo` Information for the task associated with this marker. |

## [TripMarkerCustomizationFunctionParams](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#TripMarkerCustomizationFunctionParams)
interface


interface
`google.maps.journeySharing.TripMarkerCustomizationFunctionParams`
extends `MarkerCustomizationFunctionParams`

extended by `TripWaypointMarkerCustomizationFunctionParams`

Parameters specific to marker customization functions that apply options to markers representing trip vehicle, origin and destination locations. Used by `FleetEngineTripLocationProviderOptions.vehicleMarkerCustomization`, `FleetEngineTripLocationProviderOptions.originMarkerCustomization`, and `FleetEngineTripLocationProviderOptions.destinationMarkerCustomization`.

| ### Properties ||
|---|---|
| `trip` | **Type:** `Trip` The trip associated with this marker. For information about the vehicle servicing this trip, use `Trip.latestVehicleLocationUpdate` and `Trip.remainingWaypoints`. |

## [TripWaypointMarkerCustomizationFunctionParams](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#TripWaypointMarkerCustomizationFunctionParams)
interface


interface
`google.maps.journeySharing.TripWaypointMarkerCustomizationFunctionParams`
extends `TripMarkerCustomizationFunctionParams, MarkerCustomizationFunctionParams`

Parameters specific to marker customization functions that apply options to markers representing trip waypoint locations. Used by `FleetEngineTripLocationProviderOptions.waypointMarkerCustomization`.

| ### Properties ||
|---|---|
| `waypointIndex` | **Type:** `number` The 0-based waypoint index associated with this marker. Use this index on `Trip.remainingWaypoints` to retrieve information about the waypoint. |

## [VehicleMarkerCustomizationFunctionParams](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#VehicleMarkerCustomizationFunctionParams)
interface


interface
`google.maps.journeySharing.VehicleMarkerCustomizationFunctionParams`
extends `MarkerCustomizationFunctionParams`

extended by `VehicleWaypointMarkerCustomizationFunctionParams`

Parameters specific to marker customization functions that apply options to vehicle markers. Used by `FleetEngineVehicleLocationProviderOptions.vehicleMarkerCustomization` and `FleetEngineFleetLocationProviderOptions.vehicleMarkerCustomization`.

| ### Properties ||
|---|---|
| `vehicle` | **Type:** `Vehicle` The vehicle represented by this marker. |

## [VehicleWaypointMarkerCustomizationFunctionParams](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#VehicleWaypointMarkerCustomizationFunctionParams)
interface


interface
`google.maps.journeySharing.VehicleWaypointMarkerCustomizationFunctionParams`
extends `VehicleMarkerCustomizationFunctionParams, MarkerCustomizationFunctionParams`

Parameters specific to marker customization functions that apply options to vehicle waypoint markers. Used by `FleetEngineVehicleLocationProviderOptions.originMarkerCustomization`, `FleetEngineVehicleLocationProviderOptions.destinationMarkerCustomization` and `FleetEngineVehicleLocationProviderOptions.intermediateDestinationMarkerCustomization`

| ### Properties ||
|---|---|
| `waypointIndex` | **Type:** `number` The 0-based waypoint index associated with this marker. Use this index on `Vehicle.waypoints` to retrieve information about the waypoint. |

## [PolylineCustomizationFunctionParams](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#PolylineCustomizationFunctionParams)
interface


interface
`google.maps.journeySharing.PolylineCustomizationFunctionParams`

extended by `DeliveryVehiclePolylineCustomizationFunctionParams, ShipmentPolylineCustomizationFunctionParams, TripPolylineCustomizationFunctionParams, VehiclePolylineCustomizationFunctionParams`

Parameters that are common to all polyline customization functions. No object of this class is provided directly to any polyline customization function; an object of one of its descendent classes is provided instead.

| ### Properties ||
|---|---|
| `defaultOptions` | **Type:** `PolylineOptions` The default options used to create this set of polylines. |
| `isNew` | **Type:** `boolean` If true, the list of polylines was newly created, and the polyline customization function is being called for the first time. False otherwise. |
| `polylines` | **Type:** `Array<Polyline>` The list of polylines created. They are arranged sequentially to form the rendered route. |

## [ShipmentPolylineCustomizationFunctionParams](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#ShipmentPolylineCustomizationFunctionParams)
interface


interface
`google.maps.journeySharing.ShipmentPolylineCustomizationFunctionParams`
extends `PolylineCustomizationFunctionParams`

Parameters specific to polyline customization functions for `FleetEngineShipmentLocationProvider`.

| ### Properties ||
|---|---|
| `taskTrackingInfo` | **Type:** `TaskTrackingInfo` Information for the task associated with this polyline. |

## [TripPolylineCustomizationFunctionParams](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#TripPolylineCustomizationFunctionParams)
interface


interface
`google.maps.journeySharing.TripPolylineCustomizationFunctionParams`
extends `PolylineCustomizationFunctionParams`

Parameters specific to polyline customization functions for `FleetEngineTripLocationProvider`.

| ### Properties ||
|---|---|
| `trip` | **Type:** `Trip` The trip associated with this polyline. |

## [VehiclePolylineCustomizationFunctionParams](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#VehiclePolylineCustomizationFunctionParams)
interface


interface
`google.maps.journeySharing.VehiclePolylineCustomizationFunctionParams`
extends `PolylineCustomizationFunctionParams`

Parameters specific to polyline customization functions for `FleetEngineVehicleLocationProvider`.

| ### Properties ||
|---|---|
| `vehicle` | **Type:** `Vehicle` The vehicle traversing through this polyline. |

## [DeliveryVehiclePolylineCustomizationFunctionParams](https://developers.google.com/maps/documentation/javascript/reference/journey-sharing-ui-customization.md.txt#DeliveryVehiclePolylineCustomizationFunctionParams)
interface


interface
`google.maps.journeySharing.DeliveryVehiclePolylineCustomizationFunctionParams`
extends `PolylineCustomizationFunctionParams`

Parameters specific to polyline customization functions for `FleetEngineDeliveryVehicleLocationProvider`.

| ### Properties ||
|---|---|
| `deliveryVehicle` | **Type:** `DeliveryVehicle` The delivery vehicle traversing through this polyline. |