Options
All
  • Public
  • Public/Protected
  • All
Menu

Describes a symbol, which consists of a vector path with styling. A symbol can be used as the icon of a marker, or placed on a polyline.

Hierarchy

  • Symbol

Index

Properties

anchor?: null | google.maps.Point

The position of the symbol relative to the marker or polyline. The coordinates of the symbol's path are translated left and up by the anchor's x and y coordinates respectively. The position is expressed in the same coordinate system as the symbol's path.

defaultvalue

google.maps.Point(0,0)

fillColor?: null | string

The symbol's fill color. All CSS3 colors are supported except for extended named colors. For symbol markers, this defaults to 'black'. For symbols on polylines, this defaults to the stroke color of the corresponding polyline.

fillOpacity?: null | number

The symbol's fill opacity.

defaultvalue

0

labelOrigin?: null | google.maps.Point

The origin of the label relative to the origin of the path, if label is supplied by the marker. The origin is expressed in the same coordinate system as the symbol's path. This property is unused for symbols on polylines.

defaultvalue

google.maps.Point(0,0)

path: string | SymbolPath

The symbol's path, which is a built-in symbol path, or a custom path expressed using SVG path notation. Required.

rotation?: null | number

The angle by which to rotate the symbol, expressed clockwise in degrees. A symbol in an IconSequence where fixedRotation is false is rotated relative to the angle of the edge on which it lies.

defaultvalue

0

scale?: null | number

The amount by which the symbol is scaled in size. For symbol markers, this defaults to 1; after scaling, the symbol may be of any size. For symbols on a polyline, this defaults to the stroke weight of the polyline; after scaling, the symbol must lie inside a square 22 pixels in size centered at the symbol's anchor.

strokeColor?: null | string

The symbol's stroke color. All CSS3 colors are supported except for extended named colors. For symbol markers, this defaults to 'black'. For symbols on a polyline, this defaults to the stroke color of the polyline.

strokeOpacity?: null | number

The symbol's stroke opacity. For symbol markers, this defaults to 1. For symbols on a polyline, this defaults to the stroke opacity of the polyline.

strokeWeight?: null | number

The symbol's stroke weight.

defaultvalue

The google.maps.Symbol.scale of the symbol.

Generated using TypeDoc