Google.Maps.Feature.Style.Settings.SegmentStyleSettings

Scriptable object for segment style settings.

Summary

Inheritance

Inherits from: Google.Maps.Feature.Style.Settings.AbstractStyleSettings

Public attributes

BorderMaterial
Material for borders. null if there is no border.
BorderWidth = 1.0f
float
Border width.
IntersectionArmLength = 3.5f
float
The length of the intersection arms.
IntersectionJoinLength = 7
float
If the length of a road connecting two intersections is shorter than the join length, the two intersections are joined.
IntersectionMaterial
Intersection material for segments.
Material
Material
Fill material for segments.
MaxIntersectionArmDistance = 20
float
The maximum distance an intersection arm can start from the center of the intersection it's connected with.
Width = 7.0f
float
Segment width.

Public functions

Apply(SegmentStyle style)
Apply settings to SegmentStyle.

Public attributes

BorderMaterial

Material BorderMaterial

Material for borders. null if there is no border.

BorderWidth

float BorderWidth = 1.0f

Border width.

IntersectionArmLength

float IntersectionArmLength = 3.5f

The length of the intersection arms.

IntersectionJoinLength

float IntersectionJoinLength = 7

If the length of a road connecting two intersections is shorter than the join length, the two intersections are joined.

In most cases, this should be greater than twice the arm length to avoid overlapping arms.

IntersectionMaterial

Material IntersectionMaterial

Intersection material for segments.

Material

Material Material

Fill material for segments.

MaxIntersectionArmDistance

float MaxIntersectionArmDistance = 20

The maximum distance an intersection arm can start from the center of the intersection it's connected with.

Two roads may overlap indefinitely, usually caused by a large road width. In these cases, it may not be possible to generate an acceptable intersection. Settings a maximum arm distance prevents abnormally large intersections from being generated.

Width

float Width = 7.0f

Segment width.

Public functions

Apply

SegmentStyle Apply(
  SegmentStyle style
)

Apply settings to SegmentStyle.

Details
Parameters
style
SegmentStyle to apply settings to.
Returns
New SegmentStyle with settings applied.