UI Customization

PolylineSetup typedef

google.maps.journeySharing.PolylineSetup typedef

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.

Requires the &libraries=journeySharing URL parameter. See Libraries in the Maps JavaScript API.

PolylineSetupOptions|(function(DefaultPolylineSetupOptions): PolylineSetupOptions)

PolylineSetupOptions interface

google.maps.journeySharing.PolylineSetupOptions interface

PolylineSetup options.

Requires the &libraries=journeySharing URL parameter. See Libraries in the Maps JavaScript API.

polylineOptions optional
Type:  PolylineOptions optional
Polyline options.
visible optional
Type:  boolean optional
Polyline visibility.

DefaultPolylineSetupOptions interface

google.maps.journeySharing.DefaultPolylineSetupOptions interface

PolylineSetup default options.

Requires the &libraries=journeySharing URL parameter. See Libraries in the Maps JavaScript API.

defaultPolylineOptions
Default polyline options.
defaultVisible
Type:  boolean
Default polyline visibility.

MarkerSetup typedef

google.maps.journeySharing.MarkerSetup typedef

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.

Requires the &libraries=journeySharing URL parameter. See Libraries in the Maps JavaScript API.

MarkerSetupOptions|(function(DefaultMarkerSetupOptions): MarkerSetupOptions)

MarkerSetupOptions interface

google.maps.journeySharing.MarkerSetupOptions interface

MarkerSetup options.

Requires the &libraries=journeySharing URL parameter. See Libraries in the Maps JavaScript API.

markerOptions optional
Type:  MarkerOptions optional
Marker options.

DefaultMarkerSetupOptions interface

google.maps.journeySharing.DefaultMarkerSetupOptions interface

MarkerSetup default options.

Requires the &libraries=journeySharing URL parameter. See Libraries in the Maps JavaScript API.

defaultMarkerOptions
Default marker options.