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