ng-agm-core-lib
Version:
Angular components for Google Maps
95 lines (94 loc) • 4.64 kB
TypeScript
/// <reference types="googlemaps" />
import { OnInit } from '@angular/core';
import * as i0 from "@angular/core";
/**
* 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
*
* ### Example
* ```html
* <agm-map [latitude]="lat" [longitude]="lng" [zoom]="zoom">
* <agm-polyline>
* <agm-icon-sequence [fixedRotation]="true" [path]="'FORWARD_OPEN_ARROW'">
* </agm-icon-sequence>
* </agm-polyline>
* </agm-map>
* ```
*/
export declare class AgmPolylineIcon implements OnInit {
/**
* If `true`, each icon in the sequence has the same fixed rotation regardless of the
* angle of the edge on which it lies. Defaults to `false`, in which case each icon
* in the sequence is rotated to align with its edge.
*/
fixedRotation: boolean;
/**
* 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%'.
*/
offset: 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'.
*/
repeat: string;
/**
* 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.
*/
anchorX: 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.
*/
anchorY: number;
/**
* The symbol's fill color. All CSS3 colors are supported except for extended named
* colors. Defaults to the stroke color of the corresponding polyline.
*/
fillColor: string;
/**
* The symbol's fill opacity. Defaults to 0.
*/
fillOpacity: number;
/**
* The symbol's path, which is a built-in symbol path, or a custom path expressed using
* SVG path notation. Required.
*/
path: keyof typeof google.maps.SymbolPath | string;
/**
* The angle by which to rotate the symbol, expressed clockwise in degrees.
* Defaults to 0. A symbol where `fixedRotation` is `false` is rotated relative to
* the angle of the edge on which it lies.
*/
rotation: 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.
*/
scale: number;
/**
* The symbol's stroke color. All CSS3 colors are supported except for extended named
* colors. Defaults to the stroke color of the polyline.
*/
strokeColor: string;
/**
* The symbol's stroke opacity. Defaults to the stroke opacity of the polyline.
*/
strokeOpacity: number;
/**
* The symbol's stroke weight. Defaults to the scale of the symbol.
*/
strokeWeight: number;
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<AgmPolylineIcon, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<AgmPolylineIcon, "agm-polyline agm-icon-sequence", never, { "fixedRotation": { "alias": "fixedRotation"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "repeat": { "alias": "repeat"; "required": false; }; "anchorX": { "alias": "anchorX"; "required": false; }; "anchorY": { "alias": "anchorY"; "required": false; }; "fillColor": { "alias": "fillColor"; "required": false; }; "fillOpacity": { "alias": "fillOpacity"; "required": false; }; "path": { "alias": "path"; "required": false; }; "rotation": { "alias": "rotation"; "required": false; }; "scale": { "alias": "scale"; "required": false; }; "strokeColor": { "alias": "strokeColor"; "required": false; }; "strokeOpacity": { "alias": "strokeOpacity"; "required": false; }; "strokeWeight": { "alias": "strokeWeight"; "required": false; }; }, {}, never, never, false, never>;
}