packages/core/src/lib/directives/polyline-icon.ts
AgmPolylineIcon enables to add polyline sequences to add arrows, circle, or custom icons either along the entire line, or in a specific part of it. See https://developers.google.com/maps/documentation/javascript/shapes#polyline_customize
```html
Selector | agm-polyline agm-icon-sequence |
Methods |
Inputs |
anchorX | |
Type : number
|
|
The x coordinate of the position of the symbol relative to the polyline. The coordinate of the symbol's path is translated left by the anchor's x coordinate. By default, a symbol is anchored at (0, 0). The position is expressed in the same coordinate system as the symbol's path. |
anchorY | |
Type : number
|
|
The y coordinate of the position of the symbol relative to the polyline. The coordinate of the symbol's path is translated up by the anchor's y coordinate. By default, a symbol is anchored at (0, 0). The position is expressed in the same coordinate system as the symbol's path. |
fillColor | |
Type : string
|
|
The symbol's fill color. All CSS3 colors are supported except for extended named colors. Defaults to the stroke color of the corresponding polyline. |
fillOpacity | |
Type : number
|
|
The symbol's fill opacity. Defaults to 0. |
fixedRotation | |
Type : boolean
|
|
If |
offset | |
Type : string
|
|
The distance from the start of the line at which an icon is to be rendered. This distance may be expressed as a percentage of line's length (e.g. '50%') or in pixels (e.g. '50px'). Defaults to '100%'. |
path | |
Type : | string
|
|
The symbol's path, which is a built-in symbol path, or a custom path expressed using SVG path notation. Required. |
repeat | |
Type : string
|
|
The distance between consecutive icons on the line. This distance may be expressed as a percentage of the line's length (e.g. '50%') or in pixels (e.g. '50px'). To disable repeating of the icon, specify '0'. Defaults to '0'. |
rotation | |
Type : number
|
|
The angle by which to rotate the symbol, expressed clockwise in degrees.
Defaults to 0. A symbol where |
scale | |
Type : number
|
|
The amount by which the symbol is scaled in size. 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 | |
Type : string
|
|
The symbol's stroke color. All CSS3 colors are supported except for extended named colors. Defaults to the stroke color of the polyline. |
strokeOpacity | |
Type : number
|
|
The symbol's stroke opacity. Defaults to the stroke opacity of the polyline. |
strokeWeight | |
Type : number
|
|
The symbol's stroke weight. Defaults to the scale of the symbol. |
ngOnInit |
ngOnInit()
|
Returns :
void
|