UI Customization

PolylineSetup typedef

google.maps.journeySharing.PolylineSetup typedef

ประเภท PolylineSetup

ประเภทจะยอมรับออบเจ็กต์ PolylineSetupOptions หรือฟังก์ชันที่ยอมรับออบเจ็กต์ DefaultPolylineSetupOptions และแสดงผลออบเจ็กต์ PolylineSetupOptions

หากระบุฟังก์ชัน ฟังก์ชันดังกล่าวสามารถและควรแก้ไขช่อง defaultPolylineOptions ของอินพุต และแสดงผลเป็น polylineOptions ในออบเจ็กต์ PolylineSetupOptions ของเอาต์พุต

PolylineSetupOptions|(function(DefaultPolylineSetupOptions): PolylineSetupOptions)

อินเทอร์เฟซ PolylineSetupOptions

google.maps.journeySharing.PolylineSetupOptions อินเทอร์เฟซ

ตัวเลือก PolylineSetup

polylineOptions
ไม่บังคับ
ประเภท: PolylineOptions optional
ตัวเลือกเส้นประกอบ
visible
ไม่บังคับ
ประเภท: boolean optional
ระดับการเข้าถึงเส้นประกอบ

อินเทอร์เฟซ DefaultPolylineSetupOptions

google.maps.journeySharing.DefaultPolylineSetupOptions อินเทอร์เฟซ

ตัวเลือกเริ่มต้นของ PolylineSetup

defaultPolylineOptions
ประเภท: PolylineOptions
ตัวเลือกเส้นประกอบเริ่มต้น
defaultVisible
ประเภท: boolean
ระดับการเข้าถึงเส้นประกอบเริ่มต้น

MarkerSetup typedef

google.maps.journeySharing.MarkerSetup typedef

ประเภท MarkerSetup

ประเภทจะยอมรับออบเจ็กต์ MarkerSetupOptions หรือฟังก์ชันที่ยอมรับออบเจ็กต์ DefaultMarkerSetupOptions และแสดงผลออบเจ็กต์ MarkerSetupOptions

หากระบุฟังก์ชัน ฟังก์ชันดังกล่าวสามารถและควรแก้ไขช่อง defaultMarkerOptions ของอินพุต และแสดงผลเป็น markerOptions ในออบเจ็กต์ MarkerSetupOptions ของเอาต์พุต

MarkerSetupOptions|(function(DefaultMarkerSetupOptions): MarkerSetupOptions)

อินเทอร์เฟซ MarkerSetupOptions

google.maps.journeySharing.MarkerSetupOptions อินเทอร์เฟซ

ตัวเลือก MarkerSetup

markerOptions
ไม่บังคับ
ประเภท: MarkerOptions optional
ตัวเลือกเครื่องหมาย

อินเทอร์เฟซ DefaultMarkerSetupOptions

google.maps.journeySharing.DefaultMarkerSetupOptions อินเทอร์เฟซ

ตัวเลือกเริ่มต้นของ MarkerSetup

defaultMarkerOptions
ประเภท: MarkerOptions
ตัวเลือกเครื่องหมายเริ่มต้น

MarkerCustomizationFunctionParams interface

google.maps.journeySharing.MarkerCustomizationFunctionParams อินเทอร์เฟซ

พารามิเตอร์ที่ใช้ร่วมกันสำหรับฟังก์ชันการปรับแต่งเครื่องหมายทั้งหมด ระบบจะไม่ส่งออบเจ็กต์ของคลาสนี้ไปยังฟังก์ชันการปรับแต่งเครื่องหมายโดยตรง แต่จะส่งออบเจ็กต์ของคลาสสืบทอดคลาสใดคลาสหนึ่งแทน

defaultOptions
ประเภท: MarkerOptions
ตัวเลือกเริ่มต้นที่ใช้สร้างเครื่องหมายนี้
isNew
ประเภท: boolean
หากเป็น "จริง" แสดงว่ามีการสร้างเครื่องหมายใหม่ และระบบจะเรียกใช้ฟังก์ชันการปรับแต่งเครื่องหมายเป็นครั้งแรกก่อนที่จะเพิ่มเครื่องหมายลงในมุมมองแผนที่ มิเช่นนั้นจะเป็น "เท็จ"
marker
ประเภท: Marker
เครื่องหมาย คุณควรปรับแต่งออบเจ็กต์นี้โดยตรง

อินเทอร์เฟซ DeliveryVehicleMarkerCustomizationFunctionParams

google.maps.journeySharing.DeliveryVehicleMarkerCustomizationFunctionParams interface
extends MarkerCustomizationFunctionParams

พารามิเตอร์เฉพาะสำหรับฟังก์ชันการปรับแต่งเครื่องหมายที่ใช้ตัวเลือกกับเครื่องหมายยานพาหนะนำส่ง ใช้โดย FleetEngineDeliveryVehicleLocationProviderOptions.deliveryVehicleMarkerCustomization และ FleetEngineDeliveryFleetLocationProviderOptions.deliveryVehicleMarkerCustomization

vehicle
ประเภท: DeliveryVehicle
ยานพาหนะสำหรับการนำส่งที่แสดงโดยเครื่องหมายนี้
สืบทอด: defaultOptions, isNew, marker

PlannedStopMarkerCustomizationFunctionParams interface

google.maps.journeySharing.PlannedStopMarkerCustomizationFunctionParams interface
extends DeliveryVehicleMarkerCustomizationFunctionParams

พารามิเตอร์เฉพาะสำหรับฟังก์ชันการปรับแต่งเครื่องหมายที่ใช้ตัวเลือกกับเครื่องหมายที่แสดงถึงจุดแวะพักที่วางแผนไว้ ใช้โดย FleetEngineDeliveryVehicleLocationProviderOptions.plannedStopMarkerCustomization

stopIndex
ประเภท: number
ดัชนีแบบ 0 ของจุดแวะพักนี้ในรายการจุดแวะพักที่เหลือ
สืบทอด: defaultOptions, isNew, marker, vehicle

TaskMarkerCustomizationFunctionParams interface

google.maps.journeySharing.TaskMarkerCustomizationFunctionParams interface
extends DeliveryVehicleMarkerCustomizationFunctionParams

พารามิเตอร์เฉพาะสำหรับฟังก์ชันการปรับแต่งเครื่องหมายที่ใช้ตัวเลือกกับเครื่องหมายที่แสดงตำแหน่งงานที่วางแผนไว้หรือตำแหน่งงานจริง ใช้โดย FleetEngineDeliveryVehicleLocationProviderOptions.taskMarkerCustomization และ FleetEngineDeliveryVehicleLocationProviderOptions.taskOutcomeMarkerCustomization

task
ประเภท: Task
ตำแหน่งของงานที่แสดงโดยเครื่องหมายนี้
สืบทอด: defaultOptions, isNew, marker, vehicle

อินเทอร์เฟซ ShipmentMarkerCustomizationFunctionParams

google.maps.journeySharing.ShipmentMarkerCustomizationFunctionParams interface
extends MarkerCustomizationFunctionParams

พารามิเตอร์เฉพาะสำหรับฟังก์ชันการปรับแต่งเครื่องหมายที่ใช้ตัวเลือกกับเครื่องหมายที่แสดงถึงยานพาหนะนำส่งสินค้าและสถานที่ปลายทาง ใช้โดย FleetEngineShipmentLocationProviderOptions.deliveryVehicleMarkerCustomization และ FleetEngineShipmentLocationProviderOptions.destinationMarkerCustomization

taskTrackingInfo
ประเภท: TaskTrackingInfo
ข้อมูลสำหรับงานที่เชื่อมโยงกับเครื่องหมายนี้
สืบทอด: defaultOptions, isNew, marker

TripMarkerCustomizationFunctionParams interface

google.maps.journeySharing.TripMarkerCustomizationFunctionParams interface
extends MarkerCustomizationFunctionParams

พารามิเตอร์เฉพาะสำหรับฟังก์ชันการปรับแต่งเครื่องหมายที่ใช้ตัวเลือกกับเครื่องหมายที่แสดงถึงยานพาหนะที่ใช้ในการเดินทาง สถานที่ต้นทาง และสถานที่ปลายทาง ใช้โดย FleetEngineTripLocationProviderOptions.vehicleMarkerCustomization, FleetEngineTripLocationProviderOptions.originMarkerCustomization และ FleetEngineTripLocationProviderOptions.destinationMarkerCustomization

trip
ประเภท: Trip
การเดินทางที่เชื่อมโยงกับเครื่องหมายนี้

หากต้องการข้อมูลเกี่ยวกับยานพาหนะที่ให้บริการในเที่ยวเดินทางนี้ ให้ใช้ Trip.latestVehicleLocationUpdate และ Trip.remainingWaypoints
สืบทอด: defaultOptions, isNew, marker

TripWaypointMarkerCustomizationFunctionParams interface

google.maps.journeySharing.TripWaypointMarkerCustomizationFunctionParams interface
extends TripMarkerCustomizationFunctionParams

พารามิเตอร์เฉพาะสำหรับฟังก์ชันการปรับแต่งเครื่องหมายที่ใช้ตัวเลือกกับเครื่องหมายที่แสดงตำแหน่งจุดอ้างอิงของการเดินทาง ใช้โดย FleetEngineTripLocationProviderOptions.waypointMarkerCustomization

waypointIndex
ประเภท: number
ดัชนีจุดอ้างอิงแบบ 0 ที่เชื่อมโยงกับเครื่องหมายนี้ ใช้ดัชนีนี้ใน Trip.remainingWaypoints เพื่อดึงข้อมูลเกี่ยวกับจุดอ้างอิง
สืบทอด: defaultOptions, isNew, marker, trip

อินเทอร์เฟซ VehicleMarkerCustomizationFunctionParams

google.maps.journeySharing.VehicleMarkerCustomizationFunctionParams interface
extends MarkerCustomizationFunctionParams

พารามิเตอร์เฉพาะสำหรับฟังก์ชันการปรับแต่งเครื่องหมายที่ใช้ตัวเลือกกับเครื่องหมายยานพาหนะ ใช้โดย FleetEngineVehicleLocationProviderOptions.vehicleMarkerCustomization และ FleetEngineFleetLocationProviderOptions.vehicleMarkerCustomization

vehicle
ประเภท: Vehicle
ยานพาหนะที่แสดงโดยเครื่องหมายนี้
สืบทอด: defaultOptions, isNew, marker

อินเทอร์เฟซ VehicleWaypointMarkerCustomizationFunctionParams

google.maps.journeySharing.VehicleWaypointMarkerCustomizationFunctionParams interface
extends VehicleMarkerCustomizationFunctionParams

พารามิเตอร์เฉพาะสำหรับฟังก์ชันการปรับแต่งเครื่องหมายที่ใช้ตัวเลือกกับเครื่องหมายจุดอ้างอิงของยานพาหนะ ใช้โดย FleetEngineVehicleLocationProviderOptions.originMarkerCustomization, FleetEngineVehicleLocationProviderOptions.destinationMarkerCustomization และ FleetEngineVehicleLocationProviderOptions.intermediateDestinationMarkerCustomization

waypointIndex
ประเภท: number
ดัชนีจุดอ้างอิงแบบ 0 ที่เชื่อมโยงกับเครื่องหมายนี้ ใช้ดัชนีนี้ใน Vehicle.waypoints เพื่อดึงข้อมูลเกี่ยวกับจุดอ้างอิง
สืบทอด: defaultOptions, isNew, marker, vehicle

PolylineCustomizationFunctionParams interface

google.maps.journeySharing.PolylineCustomizationFunctionParams อินเทอร์เฟซ

พารามิเตอร์ที่ใช้ร่วมกันสำหรับฟังก์ชันการปรับแต่งเส้นประกอบทั้งหมด ไม่มีการระบุออบเจ็กต์ของคลาสนี้ให้กับฟังก์ชันการปรับแต่งเส้นประกอบโดยตรง แต่จะระบุออบเจ็กต์ของคลาสสืบทอดรายการใดรายการหนึ่งแทน

defaultOptions
ประเภท: PolylineOptions
ตัวเลือกเริ่มต้นที่ใช้สร้างชุดเส้นประกอบนี้
isNew
ประเภท: boolean
หากเป็นจริง ระบบจะสร้างรายการเส้นประกอบขึ้นใหม่ และจะเรียกใช้ฟังก์ชันการปรับแต่งเส้นประกอบเป็นครั้งแรก มิเช่นนั้นจะเป็น "เท็จ"
polylines
ประเภท: Array<Polyline>
รายการเส้นประกอบที่สร้างขึ้น โดยจะจัดเรียงตามลำดับเพื่อสร้างเส้นทางที่แสดงผล

อินเทอร์เฟซ ShipmentPolylineCustomizationFunctionParams

google.maps.journeySharing.ShipmentPolylineCustomizationFunctionParams interface
extends PolylineCustomizationFunctionParams

พารามิเตอร์เฉพาะสำหรับฟังก์ชันการปรับแต่งเส้นประกอบสำหรับ FleetEngineShipmentLocationProvider

taskTrackingInfo
ประเภท: TaskTrackingInfo
ข้อมูลสำหรับงานที่เชื่อมโยงกับเส้นประกอบนี้
สืบทอด: defaultOptions, isNew, polylines

อินเทอร์เฟซ TripPolylineCustomizationFunctionParams

google.maps.journeySharing.TripPolylineCustomizationFunctionParams interface
extends PolylineCustomizationFunctionParams

พารามิเตอร์เฉพาะสำหรับฟังก์ชันการปรับแต่งเส้นประกอบสำหรับ FleetEngineTripLocationProvider

trip
ประเภท: Trip
การเดินทางที่เชื่อมโยงกับเส้นประกอบนี้
สืบทอด: defaultOptions, isNew, polylines

VehiclePolylineCustomizationFunctionParams interface

google.maps.journeySharing.VehiclePolylineCustomizationFunctionParams interface
extends PolylineCustomizationFunctionParams

พารามิเตอร์เฉพาะสำหรับฟังก์ชันการปรับแต่งเส้นประกอบสำหรับ FleetEngineVehicleLocationProvider

vehicle
ประเภท: Vehicle
ยานพาหนะที่วิ่งผ่านเส้นประกอบนี้
สืบทอด: defaultOptions, isNew, polylines

อินเทอร์เฟซ DeliveryVehiclePolylineCustomizationFunctionParams

google.maps.journeySharing.DeliveryVehiclePolylineCustomizationFunctionParams interface
extends PolylineCustomizationFunctionParams

พารามิเตอร์เฉพาะสำหรับฟังก์ชันการปรับแต่งเส้นประกอบสำหรับ FleetEngineDeliveryVehicleLocationProvider

deliveryVehicle
ประเภท: DeliveryVehicle
ยานพาหนะนำส่งที่เดินทางผ่านเส้นประกอบนี้
สืบทอด: defaultOptions, isNew, polylines