RouteRenderSettings constructor
- Set<
RouteRenderOptions> options = const <RouteRenderOptions>{RouteRenderOptions.showTraffic, RouteRenderOptions.showTurnArrows, RouteRenderOptions.showWaypoints, RouteRenderOptions.showHighlights}, - Color innerColor = RenderSettings.defaultInnerColor,
- Color outerColor = RenderSettings.defaultOuterColor,
- double innerSz = RenderSettings.defaultInnerSize,
- double outerSz = RenderSettings.defaultOuterSize,
- LineType lineType = RenderSettings.defaultLineType,
- double imgSz = RenderSettings.defaultImageSize,
- double textSz = RenderSettings.defaultTextSize,
- Color textColor = RenderSettings.defaultTextColor,
- Color traveledInnerColor = Colors.transparent,
- Color turnArrowInnerColor = Colors.transparent,
- Color turnArrowOuterColor = Colors.transparent,
- double turnArrowInnerSz = RenderSettings.defaultInnerSize,
- double turnArrowOuterSz = RenderSettings.defaultOuterSize,
- double waypointTextSz = RenderSettings.defaultTextSize,
- Color waypointTextInnerColor = Colors.transparent,
- Color waypointTextOuterColor = Colors.transparent,
- Color fillColor = Colors.transparent,
- Color directionArrowInnerColor = Colors.transparent,
- Color directionArrowOuterColor = Colors.transparent,
Create a new set of route render settings.
The constructor initializes route rendering properties with sensible defaults. Provide any parameters you want to override. Sizes are in millimetres.
Parameters
options: Which route elements to display (for example RouteRenderOptions.showTraffic).innerColor: Color for the inner part of the route line.outerColor: Color for the outer part of the route line.innerSz: Inner size of the route line in millimetres.outerSz: Outer size of the route line in millimetres.lineType: Style of the route line (solid, dashed, etc.).imgSz: Size for route-related images in millimetres.textSz: Size for route text in millimetres.textColor: Color for route text.traveledInnerColor: Color for the traveled portion of the route.turnArrowInnerColor: Inner color for turn arrows.turnArrowOuterColor: Outer color for turn arrows.turnArrowInnerSz: Inner size for turn arrows in millimetres.turnArrowOuterSz: Outer size for turn arrows in millimetres.waypointTextSz: Text size for waypoint labels in millimetres.waypointTextInnerColor: Inner color for waypoint text.waypointTextOuterColor: Outer color for waypoint text.fillColor: Fill color used for route polygons.directionArrowInnerColor: Inner color for direction arrows.directionArrowOuterColor: Outer color for direction arrows.
Implementation
RouteRenderSettings({
super.options = const <RouteRenderOptions>{
RouteRenderOptions.showTraffic,
RouteRenderOptions.showTurnArrows,
RouteRenderOptions.showWaypoints,
RouteRenderOptions.showHighlights,
},
super.innerColor = RenderSettings.defaultInnerColor,
super.outerColor = RenderSettings.defaultOuterColor,
super.innerSz = RenderSettings.defaultInnerSize,
super.outerSz = RenderSettings.defaultOuterSize,
super.lineType = RenderSettings.defaultLineType,
super.imgSz = RenderSettings.defaultImageSize,
super.textSz = RenderSettings.defaultTextSize,
super.textColor = RenderSettings.defaultTextColor,
this.traveledInnerColor = Colors.transparent,
this.turnArrowInnerColor = Colors.transparent,
this.turnArrowOuterColor = Colors.transparent,
this.turnArrowInnerSz = RenderSettings.defaultInnerSize,
this.turnArrowOuterSz = RenderSettings.defaultOuterSize,
this.waypointTextSz = RenderSettings.defaultTextSize,
this.waypointTextInnerColor = Colors.transparent,
this.waypointTextOuterColor = Colors.transparent,
this.fillColor = Colors.transparent,
this.directionArrowInnerColor = Colors.transparent,
this.directionArrowOuterColor = Colors.transparent,
});