UI Customization

PolylineSetup typedef

google.maps.journeySharing.PolylineSetup typedef

折線設定類型。

類型接受 PolylineSetupOptions 物件,或接受 DefaultPolylineSetupOptions 物件並傳回 PolylineSetupOptions 物件的函式。

如果指定函式,函式就會且應該修改輸入內容的 defaultPolylineOptions 欄位,並在輸出 PolylineSetupOptions 物件中以 polylineOptions 形式傳回該欄位。

PolylineSetupOptions|(function(DefaultPolylineSetupOptions): PolylineSetupOptions)

PolylineSetupOptions 介面

google.maps.journeySharing.PolylineSetupOptions 介面

折線設定選項。

polylineOptions optional
類型:  PolylineOptions optional
折線選項。
visible optional
類型:  boolean optional
折線顯示設定。

DefaultPolylineSetupOptions 介面

google.maps.journeySharing.DefaultPolylineSetupOptions 介面

PolylineSetup 預設選項。

defaultPolylineOptions
類型:  PolylineOptions
預設折線選項。
defaultVisible
類型:  boolean
預設折線顯示設定。

MarkerSetup typedef

google.maps.journeySharing.MarkerSetup typedef

MarkerSetup 類型。

類型接受 MarkerSetupOptions 物件,或接受 DefaultMarkerSetupOptions 物件並傳回 MarkerSetupOptions 物件的函式。

如果指定函式,函式就會且應該修改輸入內容的 defaultMarkerOptions 欄位,並在輸出 MarkerSetupOptions 物件中以 markerOptions 形式傳回該欄位。

MarkerSetupOptions|(function(DefaultMarkerSetupOptions): MarkerSetupOptions)

MarkerSetupOptions 介面

google.maps.journeySharing.MarkerSetupOptions 介面

MarkerSetup 選項。

markerOptions optional
類型:  MarkerOptions optional
標記選項。

DefaultMarkerSetupOptions 介面

google.maps.journeySharing.DefaultMarkerSetupOptions 介面

MarkerSetup 預設選項。

defaultMarkerOptions
類型:  MarkerOptions
預設標記選項。

MarkerCustomizationFunctionParams 介面

google.maps.journeySharing.MarkerCustomizationFunctionParams 介面

所有標記自訂函式通用的參數。系統不會向任何標記自訂函式提供此類別的物件;改為提供其子系類別的其中一個物件。

defaultOptions
類型:  MarkerOptions
用來建立此標記的預設選項。
isNew
類型:  boolean
如果為 true,標記是最近建立的,而且會在將標記加入地圖檢視之前,首次呼叫標記自訂函式。否則傳回「否」。
marker
類型:  Marker
標記。請直接對這個物件進行所有自訂。

DeliveryVehicleMarkerCustomizationFunctionParams 介面

google.maps.journeySharing.DeliveryVehicleMarkerCustomizationFunctionParams 介面

標記自訂函式專用參數,可套用於配送車輛標記。由 FleetEngineDeliveryVehicleLocationProviderOptions.deliveryVehicleMarkerCustomizationFleetEngineDeliveryFleetLocationProviderOptions.deliveryVehicleMarkerCustomization 使用。

這個介面會擴充 MarkerCustomizationFunctionParams

vehicle
類型:  DeliveryVehicle
以這個標記表示的運送車輛。
沿用: defaultOptionsisNewmarker

PlannedStopMarkerCustomizationFunctionParams 介面

google.maps.journeySharing.PlannedStopMarkerCustomizationFunctionParams 介面

標記自訂函式專用的參數,可將選項套用至代表預定停靠站的標記。由 FleetEngineDeliveryVehicleLocationProviderOptions.plannedStopMarkerCustomization 使用。

這個介面會擴充 DeliveryVehicleMarkerCustomizationFunctionParams

stopIndex
類型:  number
其他停靠站清單中此停靠站的索引 (從 0 開始)。
沿用: defaultOptionsisNewmarkervehicle

TaskMarkerCustomizationFunctionParams 介面

google.maps.journeySharing.TaskMarkerCustomizationFunctionParams 介面

標記自訂函式專用的參數,可將選項套用至代表預定或實際工作位置的標記。由 FleetEngineDeliveryVehicleLocationProviderOptions.taskMarkerCustomizationFleetEngineDeliveryVehicleLocationProviderOptions.taskOutcomeMarkerCustomization 使用。

這個介面會擴充 DeliveryVehicleMarkerCustomizationFunctionParams

task
類型:  Task
以此標記表示的工作位置。
沿用: defaultOptionsisNewmarkervehicle

ShipmentMarkerCustomizationFunctionParams 介面

google.maps.journeySharing.ShipmentMarkerCustomizationFunctionParams 介面

標記自訂函式專用的參數,可將選項套用至代表貨運車輛和目的地位置的標記。由 FleetEngineShipmentLocationProviderOptions.deliveryVehicleMarkerCustomizationFleetEngineShipmentLocationProviderOptions.destinationMarkerCustomization 使用。

這個介面會擴充 MarkerCustomizationFunctionParams

taskTrackingInfo
類型:  TaskTrackingInfo
與此標記相關聯的工作資訊。
沿用: defaultOptionsisNewmarker

TripMarkerCustomizationFunctionParams 介面

google.maps.journeySharing.TripMarkerCustomizationFunctionParams 介面

標記自訂函式專用的參數,可將選項套用至代表行程車輛、出發地和目的地位置的標記。由 FleetEngineTripLocationProviderOptions.vehicleMarkerCustomizationFleetEngineTripLocationProviderOptions.originMarkerCustomizationFleetEngineTripLocationProviderOptions.destinationMarkerCustomization 使用。

這個介面會擴充 MarkerCustomizationFunctionParams

trip
類型:  Trip
與此標記相關聯的行程。

如要查看這趟行程的適用車輛,請使用 Trip.latestVehicleLocationUpdateTrip.remainingWaypoints
沿用: defaultOptionsisNewmarker

TripWaypointMarkerCustomizationFunctionParams 介面

google.maps.journeySharing.TripWaypointMarkerCustomizationFunctionParams 介面

標記自訂函式專用的參數,可將選項套用至代表行程路線控點位置的標記。由 FleetEngineTripLocationProviderOptions.waypointMarkerCustomization 使用。

這個介面會擴充 TripMarkerCustomizationFunctionParams

waypointIndex
類型:  number
與此標記相關聯的 0 式路線控點索引。請在 Trip.remainingWaypoints 上使用這個索引,擷取路線控點的相關資訊。
沿用: defaultOptionsisNewmarkertrip

VehicleMarkerCustomizationFunctionParams 介面

google.maps.journeySharing.VehicleMarkerCustomizationFunctionParams 介面

標記自訂函式專用參數,適用於車輛標記的選項。由 FleetEngineVehicleLocationProviderOptions.vehicleMarkerCustomizationFleetEngineFleetLocationProviderOptions.vehicleMarkerCustomization 使用。

這個介面會擴充 MarkerCustomizationFunctionParams

vehicle
類型:  Vehicle
這個標記代表的車輛。
沿用: defaultOptionsisNewmarker

VehicleWaypointMarkerCustomizationFunctionParams 介面

google.maps.journeySharing.VehicleWaypointMarkerCustomizationFunctionParams 介面

標記自訂函式專用的參數,適用於車輛路線控點標記的選項。由 FleetEngineVehicleLocationProviderOptions.originMarkerCustomizationFleetEngineVehicleLocationProviderOptions.destinationMarkerCustomizationFleetEngineVehicleLocationProviderOptions.intermediateDestinationMarkerCustomization 使用

這個介面會擴充 VehicleMarkerCustomizationFunctionParams

waypointIndex
類型:  number
與此標記相關聯的 0 式路線控點索引。請在 Vehicle.waypoints 上使用這個索引,擷取路線控點的相關資訊。
沿用: defaultOptionsisNewmarkervehicle