UNPKG

4.25 kBTypeScriptView Raw
1/// <reference types="googlemaps" />
2import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChange } from '@angular/core';
3import { CircleManager } from '../services/managers/circle-manager';
4export declare class AgmCircle implements OnInit, OnChanges, OnDestroy {
5 private _manager;
6 /**
7 * The latitude position of the circle (required).
8 */
9 latitude: number;
10 /**
11 * The clickable position of the circle (required).
12 */
13 longitude: number;
14 /**
15 * Indicates whether this Circle handles mouse events. Defaults to true.
16 */
17 clickable: boolean;
18 /**
19 * If set to true, the user can drag this circle over the map. Defaults to false.
20 */
21 draggable: boolean;
22 /**
23 * If set to true, the user can edit this circle by dragging the control points shown at
24 * the center and around the circumference of the circle. Defaults to false.
25 */
26 editable: boolean;
27 /**
28 * The fill color. All CSS3 colors are supported except for extended named colors.
29 */
30 fillColor: string;
31 /**
32 * The fill opacity between 0.0 and 1.0.
33 */
34 fillOpacity: number;
35 /**
36 * The radius in meters on the Earth's surface.
37 */
38 radius: number;
39 /**
40 * The stroke color. All CSS3 colors are supported except for extended named colors.
41 */
42 strokeColor: string;
43 /**
44 * The stroke opacity between 0.0 and 1.0
45 */
46 strokeOpacity: number;
47 /**
48 * The stroke position. Defaults to CENTER.
49 * This property is not supported on Internet Explorer 8 and earlier.
50 */
51 strokePosition: keyof typeof google.maps.StrokePosition;
52 /**
53 * The stroke width in pixels.
54 */
55 strokeWeight: number;
56 /**
57 * Whether this circle is visible on the map. Defaults to true.
58 */
59 visible: boolean;
60 /**
61 * The zIndex compared to other polys.
62 */
63 zIndex: number;
64 /**
65 * This event is fired when the circle's center is changed.
66 */
67 centerChange: EventEmitter<google.maps.LatLngLiteral>;
68 /**
69 * This event emitter gets emitted when the user clicks on the circle.
70 */
71 circleClick: EventEmitter<google.maps.MouseEvent>;
72 /**
73 * This event emitter gets emitted when the user clicks on the circle.
74 */
75 circleDblClick: EventEmitter<google.maps.MouseEvent>;
76 /**
77 * This event is repeatedly fired while the user drags the circle.
78 */
79 drag: EventEmitter<google.maps.MouseEvent>;
80 /**
81 * This event is fired when the user stops dragging the circle.
82 */
83 dragEnd: EventEmitter<google.maps.MouseEvent>;
84 /**
85 * This event is fired when the user starts dragging the circle.
86 */
87 dragStart: EventEmitter<google.maps.MouseEvent>;
88 /**
89 * This event is fired when the DOM mousedown event is fired on the circle.
90 */
91 mouseDown: EventEmitter<google.maps.MouseEvent>;
92 /**
93 * This event is fired when the DOM mousemove event is fired on the circle.
94 */
95 mouseMove: EventEmitter<google.maps.MouseEvent>;
96 /**
97 * This event is fired on circle mouseout.
98 */
99 mouseOut: EventEmitter<google.maps.MouseEvent>;
100 /**
101 * This event is fired on circle mouseover.
102 */
103 mouseOver: EventEmitter<google.maps.MouseEvent>;
104 /**
105 * This event is fired when the DOM mouseup event is fired on the circle.
106 */
107 mouseUp: EventEmitter<google.maps.MouseEvent>;
108 /**
109 * This event is fired when the circle's radius is changed.
110 */
111 radiusChange: EventEmitter<number>;
112 /**
113 * This event is fired when the circle is right-clicked on.
114 */
115 rightClick: EventEmitter<google.maps.MouseEvent>;
116 private _circleAddedToManager;
117 private static _mapOptions;
118 private _eventSubscriptions;
119 constructor(_manager: CircleManager);
120 /** @internal */
121 ngOnInit(): void;
122 /** @internal */
123 ngOnChanges(changes: {
124 [key: string]: SimpleChange;
125 }): void;
126 private _updateCircleOptionsChanges;
127 private _registerEventListeners;
128 /** @internal */
129 ngOnDestroy(): void;
130 /**
131 * Gets the LatLngBounds of this Circle.
132 */
133 getBounds(): Promise<google.maps.LatLngBounds>;
134 getCenter(): Promise<google.maps.LatLng>;
135}