-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.d.ts
executable file
·2195 lines (2119 loc) · 88.2 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/// <reference types="google.maps" />
import { AfterContentInit } from '@angular/core';
import { EventEmitter } from '@angular/core';
import * as i0 from '@angular/core';
import { NgZone } from '@angular/core';
import { Observable } from 'rxjs';
import { OnChanges } from '@angular/core';
import { OnDestroy } from '@angular/core';
import { OnInit } from '@angular/core';
import { QueryList } from '@angular/core';
import { SimpleChanges } from '@angular/core';
declare interface Algorithm_2 {
/**
* Calculates an array of {@link Cluster}.
*/
calculate: ({ markers, map }: AlgorithmInput) => AlgorithmOutput;
}
export { Algorithm_2 as Algorithm }
export declare interface AlgorithmInput {
/**
* The map containing the markers and clusters.
*/
map: google.maps.Map;
/**
* An array of markers to be clustered.
*
* There are some specific edge cases to be aware of including the following:
* * Markers that are not visible.
*/
markers: Marker[];
/**
* The `mapCanvasProjection` enables easy conversion from lat/lng to pixel.
*
* @see [MapCanvasProjection](https://developers.google.com/maps/documentation/javascript/reference/overlay-view#MapCanvasProjection)
*/
mapCanvasProjection: google.maps.MapCanvasProjection;
}
export declare interface AlgorithmOptions {
maxZoom?: number;
}
export declare interface AlgorithmOutput {
/**
* The clusters returned based upon the {@link AlgorithmInput}.
*/
clusters: Cluster[];
/**
* A boolean flag indicating that the clusters have not changed.
*/
changed?: boolean;
}
/**
* Function type alias for determining the aria label on a Google Maps marker cluster.
*
* See googlemaps.github.io/v3-utility-library/modules/_google_markerclustererplus.html#arialabelfn
*/
export declare type AriaLabelFn = (text: string) => string;
/**
* Function type alias for calculating how a marker cluster is displayed.
*
* See googlemaps.github.io/v3-utility-library/modules/_google_markerclustererplus.html#calculator
*/
export declare type Calculator = (markers: google.maps.Marker[], clusterIconStylesCount: number) => ClusterIconInfo;
export declare class Cluster {
marker?: Marker;
readonly markers?: Marker[];
protected _position: google.maps.LatLng;
constructor({ markers, position }: ClusterOptions);
get bounds(): google.maps.LatLngBounds | undefined;
get position(): google.maps.LatLng;
/**
* Get the count of **visible** markers.
*/
get count(): number;
/**
* Add a marker to the cluster.
*/
push(marker: Marker): void;
/**
* Cleanup references and remove marker from map.
*/
delete(): void;
}
/**
* Cluster class from the @google/markerclustererplus library.
*
* See googlemaps.github.io/v3-utility-library/classes/_google_markerclustererplus.cluster.html
*/
declare class Cluster_2 {
constructor(markerClusterer: MarkerClusterer_2);
getCenter(): google.maps.LatLng;
getMarkers(): google.maps.Marker[];
getSize(): number;
updateIcon(): void;
}
/**
* Info interface for a marker cluster icon.
*
* See
* googlemaps.github.io/v3-utility-library/interfaces/
* _google_markerclustererplus.clustericoninfo.html
*/
declare interface ClusterIconInfo {
index: number;
text: string;
title: string;
}
/**
* Style interface for a marker cluster icon.
*
* See
* googlemaps.github.io/v3-utility-library/interfaces/
* _google_markerclustererplus.clustericonstyle.html
*/
export declare interface ClusterIconStyle {
anchorIcon?: [number, number];
anchorText?: [number, number];
backgroundPosition?: string;
className?: string;
fontFamily?: string;
fontStyle?: string;
fontWeight?: string;
height: number;
textColor?: string;
textDecoration?: string;
textLineHeight?: number;
textSize?: number;
url?: string;
width: number;
}
export declare interface ClusterOptions {
position?: google.maps.LatLng | google.maps.LatLngLiteral;
markers?: Marker[];
}
export declare class ClusterStats {
readonly markers: {
sum: number;
};
readonly clusters: {
count: number;
markers: {
mean: number;
sum: number;
min: number;
max: number;
};
};
constructor(markers: Marker[], clusters: Cluster[]);
}
/** Arbitrary default height for the map element */
declare const DEFAULT_HEIGHT = "500px";
/**
* Default options for the Google Maps marker component. Displays a marker
* at the Googleplex.
*/
declare const DEFAULT_MARKER_OPTIONS: {
position: {
lat: number;
lng: number;
};
};
/**
* Default options for the Google Maps marker component. Displays a marker
* at the Googleplex.
*/
declare const DEFAULT_MARKER_OPTIONS_2: {
position: {
lat: number;
lng: number;
};
};
/** default options set to the Googleplex */
declare const DEFAULT_OPTIONS: google.maps.MapOptions;
/** Arbitrary default width for the map element */
declare const DEFAULT_WIDTH = "500px";
export declare const defaultOnClusterClickHandler: onClusterClickHandler;
/**
* Angular component for implementing a Google Maps Marker Clusterer.
* See https://developers.google.com/maps/documentation/javascript/marker-clustering
*
* @deprecated This component is using a deprecated clustering implementation. Use the
* `map-marker-clusterer` component instead.
* @breaking-change 21.0.0
*
*/
export declare class DeprecatedMapMarkerClusterer implements OnInit, AfterContentInit, OnChanges, OnDestroy {
private readonly _googleMap;
private readonly _ngZone;
private readonly _currentMarkers;
private readonly _eventManager;
private readonly _destroy;
/** Whether the clusterer is allowed to be initialized. */
private readonly _canInitialize;
ariaLabelFn: AriaLabelFn;
set averageCenter(averageCenter: boolean);
private _averageCenter;
batchSize?: number;
set batchSizeIE(batchSizeIE: number);
private _batchSizeIE;
set calculator(calculator: Calculator);
private _calculator;
set clusterClass(clusterClass: string);
private _clusterClass;
set enableRetinaIcons(enableRetinaIcons: boolean);
private _enableRetinaIcons;
set gridSize(gridSize: number);
private _gridSize;
set ignoreHidden(ignoreHidden: boolean);
private _ignoreHidden;
set imageExtension(imageExtension: string);
private _imageExtension;
set imagePath(imagePath: string);
private _imagePath;
set imageSizes(imageSizes: number[]);
private _imageSizes;
set maxZoom(maxZoom: number);
private _maxZoom;
set minimumClusterSize(minimumClusterSize: number);
private _minimumClusterSize;
set styles(styles: ClusterIconStyle[]);
private _styles;
set title(title: string);
private _title;
set zIndex(zIndex: number);
private _zIndex;
set zoomOnClick(zoomOnClick: boolean);
private _zoomOnClick;
set options(options: MarkerClustererOptions);
private _options;
/**
* See
* googlemaps.github.io/v3-utility-library/modules/
* _google_markerclustererplus.html#clusteringbegin
*/
readonly clusteringbegin: Observable<void>;
/**
* See
* googlemaps.github.io/v3-utility-library/modules/_google_markerclustererplus.html#clusteringend
*/
readonly clusteringend: Observable<void>;
/** Emits when a cluster has been clicked. */
readonly clusterClick: Observable<Cluster_2>;
_markers: QueryList<MapMarker>;
/**
* The underlying MarkerClusterer object.
*
* See
* googlemaps.github.io/v3-utility-library/classes/
* _google_markerclustererplus.markerclusterer.html
*/
markerClusterer?: MarkerClusterer_2;
/** Event emitted when the clusterer is initialized. */
readonly markerClustererInitialized: EventEmitter<MarkerClusterer_2>;
constructor(...args: unknown[]);
ngOnInit(): void;
ngAfterContentInit(): void;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
fitMapToMarkers(padding: number | google.maps.Padding): void;
getAverageCenter(): boolean;
getBatchSizeIE(): number;
getCalculator(): Calculator;
getClusterClass(): string;
getClusters(): Cluster_2[];
getEnableRetinaIcons(): boolean;
getGridSize(): number;
getIgnoreHidden(): boolean;
getImageExtension(): string;
getImagePath(): string;
getImageSizes(): number[];
getMaxZoom(): number;
getMinimumClusterSize(): number;
getStyles(): ClusterIconStyle[];
getTitle(): string;
getTotalClusters(): number;
getTotalMarkers(): number;
getZIndex(): number;
getZoomOnClick(): boolean;
private _combineOptions;
private _watchForMarkerChanges;
private _getInternalMarkers;
private _assertInitialized;
static ɵfac: i0.ɵɵFactoryDeclaration<DeprecatedMapMarkerClusterer, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DeprecatedMapMarkerClusterer, "deprecated-map-marker-clusterer", ["mapMarkerClusterer"], { "ariaLabelFn": { "alias": "ariaLabelFn"; "required": false; }; "averageCenter": { "alias": "averageCenter"; "required": false; }; "batchSize": { "alias": "batchSize"; "required": false; }; "batchSizeIE": { "alias": "batchSizeIE"; "required": false; }; "calculator": { "alias": "calculator"; "required": false; }; "clusterClass": { "alias": "clusterClass"; "required": false; }; "enableRetinaIcons": { "alias": "enableRetinaIcons"; "required": false; }; "gridSize": { "alias": "gridSize"; "required": false; }; "ignoreHidden": { "alias": "ignoreHidden"; "required": false; }; "imageExtension": { "alias": "imageExtension"; "required": false; }; "imagePath": { "alias": "imagePath"; "required": false; }; "imageSizes": { "alias": "imageSizes"; "required": false; }; "maxZoom": { "alias": "maxZoom"; "required": false; }; "minimumClusterSize": { "alias": "minimumClusterSize"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "title": { "alias": "title"; "required": false; }; "zIndex": { "alias": "zIndex"; "required": false; }; "zoomOnClick": { "alias": "zoomOnClick"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "clusteringbegin": "clusteringbegin"; "clusteringend": "clusteringend"; "clusterClick": "clusterClick"; "markerClustererInitialized": "markerClustererInitialized"; }, ["_markers"], ["*"], true, never>;
}
/**
* Angular component that renders a Google Map via the Google Maps JavaScript
* API.
* @see https://developers.google.com/maps/documentation/javascript/reference/
*/
export declare class GoogleMap implements OnChanges, OnInit, OnDestroy {
private readonly _elementRef;
private _ngZone;
private _eventManager;
private _mapEl;
private _existingAuthFailureCallback;
/**
* The underlying google.maps.Map object
*
* See developers.google.com/maps/documentation/javascript/reference/map#Map
*/
googleMap?: google.maps.Map;
/** Whether we're currently rendering inside a browser. */
_isBrowser: boolean;
/** Height of the map. Set this to `null` if you'd like to control the height through CSS. */
height: string | number | null;
/** Width of the map. Set this to `null` if you'd like to control the width through CSS. */
width: string | number | null;
/**
* The Map ID of the map. This parameter cannot be set or changed after a map is instantiated.
* See: https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions.mapId
*/
mapId: string | undefined;
/**
* Type of map that should be rendered. E.g. hybrid map, terrain map etc.
* See: https://developers.google.com/maps/documentation/javascript/reference/map#MapTypeId
*/
mapTypeId: google.maps.MapTypeId | undefined;
set center(center: google.maps.LatLngLiteral | google.maps.LatLng);
private _center;
set zoom(zoom: number);
private _zoom;
set options(options: google.maps.MapOptions);
private _options;
/** Event emitted when the map is initialized. */
readonly mapInitialized: EventEmitter<google.maps.Map>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/events#auth-errors
*/
readonly authFailure: EventEmitter<void>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.bounds_changed
*/
readonly boundsChanged: Observable<void>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.center_changed
*/
readonly centerChanged: Observable<void>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.click
*/
readonly mapClick: Observable<google.maps.MapMouseEvent | google.maps.IconMouseEvent>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.dblclick
*/
readonly mapDblclick: Observable<google.maps.MapMouseEvent>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.drag
*/
readonly mapDrag: Observable<void>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.dragend
*/
readonly mapDragend: Observable<void>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.dragstart
*/
readonly mapDragstart: Observable<void>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.heading_changed
*/
readonly headingChanged: Observable<void>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.idle
*/
readonly idle: Observable<void>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.maptypeid_changed
*/
readonly maptypeidChanged: Observable<void>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.mousemove
*/
readonly mapMousemove: Observable<google.maps.MapMouseEvent>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.mouseout
*/
readonly mapMouseout: Observable<google.maps.MapMouseEvent>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.mouseover
*/
readonly mapMouseover: Observable<google.maps.MapMouseEvent>;
/**
* See
* developers.google.com/maps/documentation/javascript/reference/map#Map.projection_changed
*/
readonly projectionChanged: Observable<void>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.rightclick
*/
readonly mapRightclick: Observable<google.maps.MapMouseEvent>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.tilesloaded
*/
readonly tilesloaded: Observable<void>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.tilt_changed
*/
readonly tiltChanged: Observable<void>;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.zoom_changed
*/
readonly zoomChanged: Observable<void>;
constructor(...args: unknown[]);
ngOnChanges(changes: SimpleChanges): void;
ngOnInit(): void;
private _initialize;
ngOnDestroy(): void;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.fitBounds
*/
fitBounds(bounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral, padding?: number | google.maps.Padding): void;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.panBy
*/
panBy(x: number, y: number): void;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.panTo
*/
panTo(latLng: google.maps.LatLng | google.maps.LatLngLiteral): void;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.panToBounds
*/
panToBounds(latLngBounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral, padding?: number | google.maps.Padding): void;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getBounds
*/
getBounds(): google.maps.LatLngBounds | null;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getCenter
*/
getCenter(): google.maps.LatLng | undefined;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getClickableIcons
*/
getClickableIcons(): boolean | undefined;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getHeading
*/
getHeading(): number | undefined;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getMapTypeId
*/
getMapTypeId(): google.maps.MapTypeId | string | undefined;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getProjection
*/
getProjection(): google.maps.Projection | null;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getStreetView
*/
getStreetView(): google.maps.StreetViewPanorama;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getTilt
*/
getTilt(): number | undefined;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getZoom
*/
getZoom(): number | undefined;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.controls
*/
get controls(): google.maps.MVCArray<Node>[];
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.data
*/
get data(): google.maps.Data;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.mapTypes
*/
get mapTypes(): google.maps.MapTypeRegistry;
/**
* See
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.overlayMapTypes
*/
get overlayMapTypes(): google.maps.MVCArray<google.maps.MapType | null>;
/** Returns a promise that resolves when the map has been initialized. */
_resolveMap(): Promise<google.maps.Map>;
private _setSize;
/** Combines the center and zoom and the other map options into a single object */
private _combineOptions;
/** Asserts that the map has been initialized. */
private _assertInitialized;
static ɵfac: i0.ɵɵFactoryDeclaration<GoogleMap, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<GoogleMap, "google-map", ["googleMap"], { "height": { "alias": "height"; "required": false; }; "width": { "alias": "width"; "required": false; }; "mapId": { "alias": "mapId"; "required": false; }; "mapTypeId": { "alias": "mapTypeId"; "required": false; }; "center": { "alias": "center"; "required": false; }; "zoom": { "alias": "zoom"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "mapInitialized": "mapInitialized"; "authFailure": "authFailure"; "boundsChanged": "boundsChanged"; "centerChanged": "centerChanged"; "mapClick": "mapClick"; "mapDblclick": "mapDblclick"; "mapDrag": "mapDrag"; "mapDragend": "mapDragend"; "mapDragstart": "mapDragstart"; "headingChanged": "headingChanged"; "idle": "idle"; "maptypeidChanged": "maptypeidChanged"; "mapMousemove": "mapMousemove"; "mapMouseout": "mapMouseout"; "mapMouseover": "mapMouseover"; "projectionChanged": "projectionChanged"; "mapRightclick": "mapRightclick"; "tilesloaded": "tilesloaded"; "tiltChanged": "tiltChanged"; "zoomChanged": "zoomChanged"; }, never, ["*"], true, never>;
}
export declare class GoogleMapsModule {
static ɵfac: i0.ɵɵFactoryDeclaration<GoogleMapsModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<GoogleMapsModule, never, [typeof i1.GoogleMap, typeof i2.MapBaseLayer, typeof i3.MapBicyclingLayer, typeof i4.MapCircle, typeof i5.MapDirectionsRenderer, typeof i6.MapGroundOverlay, typeof i7.MapHeatmapLayer, typeof i8.MapInfoWindow, typeof i9.MapKmlLayer, typeof i10.MapMarker, typeof i11.MapAdvancedMarker, typeof i12.DeprecatedMapMarkerClusterer, typeof i13.MapPolygon, typeof i14.MapPolyline, typeof i15.MapRectangle, typeof i16.MapTrafficLayer, typeof i17.MapTransitLayer, typeof i18.MapMarkerClusterer], [typeof i1.GoogleMap, typeof i2.MapBaseLayer, typeof i3.MapBicyclingLayer, typeof i4.MapCircle, typeof i5.MapDirectionsRenderer, typeof i6.MapGroundOverlay, typeof i7.MapHeatmapLayer, typeof i8.MapInfoWindow, typeof i9.MapKmlLayer, typeof i10.MapMarker, typeof i11.MapAdvancedMarker, typeof i12.DeprecatedMapMarkerClusterer, typeof i13.MapPolygon, typeof i14.MapPolyline, typeof i15.MapRectangle, typeof i16.MapTrafficLayer, typeof i17.MapTransitLayer, typeof i18.MapMarkerClusterer]>;
static ɵinj: i0.ɵɵInjectorDeclaration<GoogleMapsModule>;
}
/** Possible data that can be shown on a heatmap layer. */
export declare type HeatmapData = google.maps.MVCArray<google.maps.LatLng | google.maps.visualization.WeightedLocation | google.maps.LatLngLiteral> | (google.maps.LatLng | google.maps.visualization.WeightedLocation | google.maps.LatLngLiteral)[];
declare namespace i1 {
export {
DEFAULT_OPTIONS,
DEFAULT_HEIGHT,
DEFAULT_WIDTH,
GoogleMap
}
}
declare namespace i10 {
export {
DEFAULT_MARKER_OPTIONS,
MapMarker
}
}
declare namespace i11 {
export {
DEFAULT_MARKER_OPTIONS_2 as DEFAULT_MARKER_OPTIONS,
MapAdvancedMarker
}
}
declare namespace i12 {
export {
DeprecatedMapMarkerClusterer
}
}
declare namespace i13 {
export {
MapPolygon
}
}
declare namespace i14 {
export {
MapPolyline
}
}
declare namespace i15 {
export {
MapRectangle
}
}
declare namespace i16 {
export {
MapTrafficLayer
}
}
declare namespace i17 {
export {
MapTransitLayer
}
}
declare namespace i18 {
export {
MapMarkerClusterer
}
}
declare namespace i2 {
export {
MapBaseLayer
}
}
declare namespace i3 {
export {
MapBicyclingLayer
}
}
declare namespace i4 {
export {
MapCircle
}
}
declare namespace i5 {
export {
MapDirectionsRenderer
}
}
declare namespace i6 {
export {
MapGroundOverlay
}
}
declare namespace i7 {
export {
HeatmapData,
MapHeatmapLayer
}
}
declare namespace i8 {
export {
MapInfoWindow
}
}
declare namespace i9 {
export {
MapKmlLayer
}
}
/**
* Angular component that renders a Google Maps marker via the Google Maps JavaScript API.
*
* See developers.google.com/maps/documentation/javascript/reference/marker
*/
export declare class MapAdvancedMarker implements OnInit, OnChanges, OnDestroy, MapAnchorPoint, MarkerDirective {
private readonly _googleMap;
private _ngZone;
private _eventManager;
/**
* Rollover text. If provided, an accessibility text (e.g. for use with screen readers) will be added to the AdvancedMarkerElement with the provided value.
* See: https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.title
*/
set title(title: string);
private _title;
/**
* Sets the AdvancedMarkerElement's position. An AdvancedMarkerElement may be constructed without a position, but will not be displayed until its position is provided - for example, by a user's actions or choices. An AdvancedMarkerElement's position can be provided by setting AdvancedMarkerElement.position if not provided at the construction.
* Note: AdvancedMarkerElement with altitude is only supported on vector maps.
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.position
*/
set position(position: google.maps.LatLngLiteral | google.maps.LatLng | google.maps.LatLngAltitude | google.maps.LatLngAltitudeLiteral);
private _position;
/**
* The DOM Element backing the visual of an AdvancedMarkerElement.
* Note: AdvancedMarkerElement does not clone the passed-in DOM element. Once the DOM element is passed to an AdvancedMarkerElement, passing the same DOM element to another AdvancedMarkerElement will move the DOM element and cause the previous AdvancedMarkerElement to look empty.
* See: https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.content
*/
set content(content: Node | google.maps.marker.PinElement | null);
private _content;
/**
* If true, the AdvancedMarkerElement can be dragged.
* Note: AdvancedMarkerElement with altitude is not draggable.
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.gmpDraggable
*/
set gmpDraggable(draggable: boolean);
private _draggable;
/**
* Options for constructing an AdvancedMarkerElement.
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions
*/
set options(options: google.maps.marker.AdvancedMarkerElementOptions);
private _options;
/**
* AdvancedMarkerElements on the map are prioritized by zIndex, with higher values indicating higher display.
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.zIndex
*/
set zIndex(zIndex: number);
private _zIndex;
/**
* This event is fired when the AdvancedMarkerElement element is clicked.
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement.click
*/
readonly mapClick: Observable<google.maps.MapMouseEvent>;
/**
* This event is fired when the AdvancedMarkerElement is double-clicked.
*/
readonly mapDblclick: Observable<google.maps.MapMouseEvent>;
/**
* This event is fired when the mouse moves out of the AdvancedMarkerElement.
*/
readonly mapMouseout: Observable<google.maps.MapMouseEvent>;
/**
* This event is fired when the mouse moves over the AdvancedMarkerElement.
*/
readonly mapMouseover: Observable<google.maps.MapMouseEvent>;
/**
* This event is fired when the mouse button is released over the AdvancedMarkerElement.
*/
readonly mapMouseup: Observable<google.maps.MapMouseEvent>;
/**
* This event is fired when the AdvancedMarkerElement is right-clicked.
*/
readonly mapRightclick: Observable<google.maps.MapMouseEvent>;
/**
* This event is repeatedly fired while the user drags the AdvancedMarkerElement.
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement.drag
*/
readonly mapDrag: Observable<google.maps.MapMouseEvent>;
/**
* This event is fired when the user stops dragging the AdvancedMarkerElement.
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement.dragend
*/
readonly mapDragend: Observable<google.maps.MapMouseEvent>;
/**
* This event is fired when the user starts dragging the AdvancedMarkerElement.
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement.dragstart
*/
readonly mapDragstart: Observable<google.maps.MapMouseEvent>;
/** Event emitted when the marker is initialized. */
readonly markerInitialized: EventEmitter<google.maps.marker.AdvancedMarkerElement>;
/**
* The underlying google.maps.marker.AdvancedMarkerElement object.
*
* See developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement
*/
advancedMarker: google.maps.marker.AdvancedMarkerElement;
constructor(...args: unknown[]);
ngOnInit(): void;
private _initialize;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
getAnchor(): google.maps.marker.AdvancedMarkerElement;
/** Returns a promise that resolves when the marker has been initialized. */
_resolveMarker(): Promise<google.maps.marker.AdvancedMarkerElement>;
/** Creates a combined options object using the passed-in options and the individual inputs. */
private _combineOptions;
/** Asserts that the map has been initialized. */
private _assertInitialized;
static ɵfac: i0.ɵɵFactoryDeclaration<MapAdvancedMarker, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<MapAdvancedMarker, "map-advanced-marker", ["mapAdvancedMarker"], { "title": { "alias": "title"; "required": false; }; "position": { "alias": "position"; "required": false; }; "content": { "alias": "content"; "required": false; }; "gmpDraggable": { "alias": "gmpDraggable"; "required": false; }; "options": { "alias": "options"; "required": false; }; "zIndex": { "alias": "zIndex"; "required": false; }; }, { "mapClick": "mapClick"; "mapDblclick": "mapDblclick"; "mapMouseout": "mapMouseout"; "mapMouseover": "mapMouseover"; "mapMouseup": "mapMouseup"; "mapRightclick": "mapRightclick"; "mapDrag": "mapDrag"; "mapDragend": "mapDragend"; "mapDragstart": "mapDragstart"; "markerInitialized": "markerInitialized"; }, never, never, true, never>;
}
/// <reference types="google.maps" preserve="true" />
export declare interface MapAnchorPoint {
getAnchor(): google.maps.MVCObject | google.maps.marker.AdvancedMarkerElement;
}
export declare class MapBaseLayer implements OnInit, OnDestroy {
protected readonly _map: GoogleMap;
protected readonly _ngZone: NgZone;
constructor(...args: unknown[]);
ngOnInit(): void;
ngOnDestroy(): void;
private _assertInitialized;
protected _initializeObject(): void;
protected _setMap(): void;
protected _unsetMap(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<MapBaseLayer, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<MapBaseLayer, "map-base-layer", ["mapBaseLayer"], {}, {}, never, never, true, never>;
}
/**
* Angular component that renders a Google Maps Bicycling Layer via the Google Maps JavaScript API.
*
* See developers.google.com/maps/documentation/javascript/reference/map#BicyclingLayer
*/
export declare class MapBicyclingLayer implements OnInit, OnDestroy {
private _map;
private _zone;
/**
* The underlying google.maps.BicyclingLayer object.
*
* See developers.google.com/maps/documentation/javascript/reference/map#BicyclingLayer
*/
bicyclingLayer?: google.maps.BicyclingLayer;
/** Event emitted when the bicycling layer is initialized. */
readonly bicyclingLayerInitialized: EventEmitter<google.maps.BicyclingLayer>;
ngOnInit(): void;
private _initialize;
ngOnDestroy(): void;
private _assertLayerInitialized;
static ɵfac: i0.ɵɵFactoryDeclaration<MapBicyclingLayer, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<MapBicyclingLayer, "map-bicycling-layer", ["mapBicyclingLayer"], {}, { "bicyclingLayerInitialized": "bicyclingLayerInitialized"; }, never, never, true, never>;
}
/**
* Angular component that renders a Google Maps Circle via the Google Maps JavaScript API.
* @see developers.google.com/maps/documentation/javascript/reference/polygon#Circle
*/
export declare class MapCircle implements OnInit, OnDestroy {
private readonly _map;
private readonly _ngZone;
private _eventManager;
private readonly _options;
private readonly _center;
private readonly _radius;
private readonly _destroyed;
/**
* Underlying google.maps.Circle object.
*
* @see developers.google.com/maps/documentation/javascript/reference/polygon#Circle
*/
circle?: google.maps.Circle;
set options(options: google.maps.CircleOptions);
set center(center: google.maps.LatLng | google.maps.LatLngLiteral);
set radius(radius: number);
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.center_changed
*/
readonly centerChanged: Observable<void>;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.click
*/
readonly circleClick: Observable<google.maps.MapMouseEvent>;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.dblclick
*/
readonly circleDblclick: Observable<google.maps.MapMouseEvent>;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.drag
*/
readonly circleDrag: Observable<google.maps.MapMouseEvent>;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.dragend
*/
readonly circleDragend: Observable<google.maps.MapMouseEvent>;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.dragstart
*/
readonly circleDragstart: Observable<google.maps.MapMouseEvent>;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mousedown
*/
readonly circleMousedown: Observable<google.maps.MapMouseEvent>;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mousemove
*/
readonly circleMousemove: Observable<google.maps.MapMouseEvent>;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mouseout
*/
readonly circleMouseout: Observable<google.maps.MapMouseEvent>;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mouseover
*/
readonly circleMouseover: Observable<google.maps.MapMouseEvent>;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mouseup
*/
readonly circleMouseup: Observable<google.maps.MapMouseEvent>;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.radius_changed
*/
readonly radiusChanged: Observable<void>;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.rightclick
*/
readonly circleRightclick: Observable<google.maps.MapMouseEvent>;
/** Event emitted when the circle is initialized. */
readonly circleInitialized: EventEmitter<google.maps.Circle>;
constructor(...args: unknown[]);
ngOnInit(): void;
private _initialize;
ngOnDestroy(): void;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.getBounds
*/
getBounds(): google.maps.LatLngBounds | null;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.getCenter
*/
getCenter(): google.maps.LatLng | null;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.getDraggable
*/
getDraggable(): boolean;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.getEditable
*/
getEditable(): boolean;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.getRadius
*/
getRadius(): number;
/**
* @see
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.getVisible
*/
getVisible(): boolean;
private _combineOptions;
private _watchForOptionsChanges;
private _watchForCenterChanges;
private _watchForRadiusChanges;
private _assertInitialized;
static ɵfac: i0.ɵɵFactoryDeclaration<MapCircle, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<MapCircle, "map-circle", ["mapCircle"], { "options": { "alias": "options"; "required": false; }; "center": { "alias": "center"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; }, { "centerChanged": "centerChanged"; "circleClick": "circleClick"; "circleDblclick": "circleDblclick"; "circleDrag": "circleDrag"; "circleDragend": "circleDragend"; "circleDragstart": "circleDragstart"; "circleMousedown": "circleMousedown"; "circleMousemove": "circleMousemove"; "circleMouseout": "circleMouseout"; "circleMouseover": "circleMouseover"; "circleMouseup": "circleMouseup"; "radiusChanged": "radiusChanged"; "circleRightclick": "circleRightclick"; "circleInitialized": "circleInitialized"; }, never, never, true, never>;
}
/**
* Angular component that renders a Google Maps Directions Renderer via the Google Maps
* JavaScript API.
*
* See developers.google.com/maps/documentation/javascript/reference/directions#DirectionsRenderer
*/
export declare class MapDirectionsRenderer implements OnInit, OnChanges, OnDestroy {
private readonly _googleMap;
private _ngZone;
private _eventManager;
/**
* See developers.google.com/maps/documentation/javascript/reference/directions
* #DirectionsRendererOptions.directions
*/
set directions(directions: google.maps.DirectionsResult);
private _directions;
/**
* See developers.google.com/maps/documentation/javascript/reference/directions
* #DirectionsRendererOptions
*/
set options(options: google.maps.DirectionsRendererOptions);
private _options;
/**
* See developers.google.com/maps/documentation/javascript/reference/directions
* #DirectionsRenderer.directions_changed
*/
readonly directionsChanged: Observable<void>;
/** Event emitted when the directions renderer is initialized. */
readonly directionsRendererInitialized: EventEmitter<google.maps.DirectionsRenderer>;
/** The underlying google.maps.DirectionsRenderer object. */
directionsRenderer?: google.maps.DirectionsRenderer;
constructor(...args: unknown[]);
ngOnInit(): void;
private _initialize;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
/**
* See developers.google.com/maps/documentation/javascript/reference/directions
* #DirectionsRenderer.getDirections
*/
getDirections(): google.maps.DirectionsResult | null;
/**
* See developers.google.com/maps/documentation/javascript/reference/directions
* #DirectionsRenderer.getPanel
*/
getPanel(): Node | null;
/**
* See developers.google.com/maps/documentation/javascript/reference/directions