@angular/google-maps 19.0.0-next.8 → 19.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/google-maps.mjs
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef, NgZone, EventEmitter, PLATFORM_ID, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, Directive, ContentChildren, NgModule, Injectable } from '@angular/core';
|
|
2
|
+
import { inject, ElementRef, NgZone, EventEmitter, PLATFORM_ID, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, Directive, InjectionToken, ContentChildren, NgModule, Injectable } from '@angular/core';
|
|
3
3
|
import { isPlatformBrowser } from '@angular/common';
|
|
4
|
-
import { BehaviorSubject, Observable, Subject, combineLatest } from 'rxjs';
|
|
4
|
+
import { BehaviorSubject, Observable, Subject, combineLatest, Subscription } from 'rxjs';
|
|
5
5
|
import { switchMap, take, map, takeUntil } from 'rxjs/operators';
|
|
6
6
|
|
|
7
7
|
/** Manages event on a Google Maps object, ensuring that events are added only when necessary. */
|
|
8
8
|
class MapEventManager {
|
|
9
|
+
_ngZone;
|
|
10
|
+
/** Pending listeners that were added before the target was set. */
|
|
11
|
+
_pending = [];
|
|
12
|
+
_listeners = [];
|
|
13
|
+
_targetStream = new BehaviorSubject(undefined);
|
|
9
14
|
/** Clears all currently-registered event listeners. */
|
|
10
15
|
_clearListeners() {
|
|
11
16
|
for (const listener of this._listeners) {
|
|
@@ -15,10 +20,6 @@ class MapEventManager {
|
|
|
15
20
|
}
|
|
16
21
|
constructor(_ngZone) {
|
|
17
22
|
this._ngZone = _ngZone;
|
|
18
|
-
/** Pending listeners that were added before the target was set. */
|
|
19
|
-
this._pending = [];
|
|
20
|
-
this._listeners = [];
|
|
21
|
-
this._targetStream = new BehaviorSubject(undefined);
|
|
22
23
|
}
|
|
23
24
|
/** Gets an observable that adds an event listener to the map when a consumer subscribes to it. */
|
|
24
25
|
getLazyEmitter(name) {
|
|
@@ -86,121 +87,143 @@ const DEFAULT_WIDTH = '500px';
|
|
|
86
87
|
* @see https://developers.google.com/maps/documentation/javascript/reference/
|
|
87
88
|
*/
|
|
88
89
|
class GoogleMap {
|
|
90
|
+
_elementRef = inject(ElementRef);
|
|
91
|
+
_ngZone = inject(NgZone);
|
|
92
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
93
|
+
_mapEl;
|
|
94
|
+
_existingAuthFailureCallback;
|
|
95
|
+
/**
|
|
96
|
+
* The underlying google.maps.Map object
|
|
97
|
+
*
|
|
98
|
+
* See developers.google.com/maps/documentation/javascript/reference/map#Map
|
|
99
|
+
*/
|
|
100
|
+
googleMap;
|
|
101
|
+
/** Whether we're currently rendering inside a browser. */
|
|
102
|
+
_isBrowser;
|
|
103
|
+
/** Height of the map. Set this to `null` if you'd like to control the height through CSS. */
|
|
104
|
+
height = DEFAULT_HEIGHT;
|
|
105
|
+
/** Width of the map. Set this to `null` if you'd like to control the width through CSS. */
|
|
106
|
+
width = DEFAULT_WIDTH;
|
|
107
|
+
/**
|
|
108
|
+
* The Map ID of the map. This parameter cannot be set or changed after a map is instantiated.
|
|
109
|
+
* See: https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions.mapId
|
|
110
|
+
*/
|
|
111
|
+
mapId;
|
|
112
|
+
/**
|
|
113
|
+
* Type of map that should be rendered. E.g. hybrid map, terrain map etc.
|
|
114
|
+
* See: https://developers.google.com/maps/documentation/javascript/reference/map#MapTypeId
|
|
115
|
+
*/
|
|
116
|
+
mapTypeId;
|
|
89
117
|
set center(center) {
|
|
90
118
|
this._center = center;
|
|
91
119
|
}
|
|
120
|
+
_center;
|
|
92
121
|
set zoom(zoom) {
|
|
93
122
|
this._zoom = zoom;
|
|
94
123
|
}
|
|
124
|
+
_zoom;
|
|
95
125
|
set options(options) {
|
|
96
126
|
this._options = options || DEFAULT_OPTIONS;
|
|
97
127
|
}
|
|
128
|
+
_options = DEFAULT_OPTIONS;
|
|
129
|
+
/** Event emitted when the map is initialized. */
|
|
130
|
+
mapInitialized = new EventEmitter();
|
|
131
|
+
/**
|
|
132
|
+
* See
|
|
133
|
+
* https://developers.google.com/maps/documentation/javascript/events#auth-errors
|
|
134
|
+
*/
|
|
135
|
+
authFailure = new EventEmitter();
|
|
136
|
+
/**
|
|
137
|
+
* See
|
|
138
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.bounds_changed
|
|
139
|
+
*/
|
|
140
|
+
boundsChanged = this._eventManager.getLazyEmitter('bounds_changed');
|
|
141
|
+
/**
|
|
142
|
+
* See
|
|
143
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.center_changed
|
|
144
|
+
*/
|
|
145
|
+
centerChanged = this._eventManager.getLazyEmitter('center_changed');
|
|
146
|
+
/**
|
|
147
|
+
* See
|
|
148
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.click
|
|
149
|
+
*/
|
|
150
|
+
mapClick = this._eventManager.getLazyEmitter('click');
|
|
151
|
+
/**
|
|
152
|
+
* See
|
|
153
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.dblclick
|
|
154
|
+
*/
|
|
155
|
+
mapDblclick = this._eventManager.getLazyEmitter('dblclick');
|
|
156
|
+
/**
|
|
157
|
+
* See
|
|
158
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.drag
|
|
159
|
+
*/
|
|
160
|
+
mapDrag = this._eventManager.getLazyEmitter('drag');
|
|
161
|
+
/**
|
|
162
|
+
* See
|
|
163
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.dragend
|
|
164
|
+
*/
|
|
165
|
+
mapDragend = this._eventManager.getLazyEmitter('dragend');
|
|
166
|
+
/**
|
|
167
|
+
* See
|
|
168
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.dragstart
|
|
169
|
+
*/
|
|
170
|
+
mapDragstart = this._eventManager.getLazyEmitter('dragstart');
|
|
171
|
+
/**
|
|
172
|
+
* See
|
|
173
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.heading_changed
|
|
174
|
+
*/
|
|
175
|
+
headingChanged = this._eventManager.getLazyEmitter('heading_changed');
|
|
176
|
+
/**
|
|
177
|
+
* See
|
|
178
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.idle
|
|
179
|
+
*/
|
|
180
|
+
idle = this._eventManager.getLazyEmitter('idle');
|
|
181
|
+
/**
|
|
182
|
+
* See
|
|
183
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.maptypeid_changed
|
|
184
|
+
*/
|
|
185
|
+
maptypeidChanged = this._eventManager.getLazyEmitter('maptypeid_changed');
|
|
186
|
+
/**
|
|
187
|
+
* See
|
|
188
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.mousemove
|
|
189
|
+
*/
|
|
190
|
+
mapMousemove = this._eventManager.getLazyEmitter('mousemove');
|
|
191
|
+
/**
|
|
192
|
+
* See
|
|
193
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.mouseout
|
|
194
|
+
*/
|
|
195
|
+
mapMouseout = this._eventManager.getLazyEmitter('mouseout');
|
|
196
|
+
/**
|
|
197
|
+
* See
|
|
198
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.mouseover
|
|
199
|
+
*/
|
|
200
|
+
mapMouseover = this._eventManager.getLazyEmitter('mouseover');
|
|
201
|
+
/**
|
|
202
|
+
* See
|
|
203
|
+
* developers.google.com/maps/documentation/javascript/reference/map#Map.projection_changed
|
|
204
|
+
*/
|
|
205
|
+
projectionChanged = this._eventManager.getLazyEmitter('projection_changed');
|
|
206
|
+
/**
|
|
207
|
+
* See
|
|
208
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.rightclick
|
|
209
|
+
*/
|
|
210
|
+
mapRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
211
|
+
/**
|
|
212
|
+
* See
|
|
213
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.tilesloaded
|
|
214
|
+
*/
|
|
215
|
+
tilesloaded = this._eventManager.getLazyEmitter('tilesloaded');
|
|
216
|
+
/**
|
|
217
|
+
* See
|
|
218
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.tilt_changed
|
|
219
|
+
*/
|
|
220
|
+
tiltChanged = this._eventManager.getLazyEmitter('tilt_changed');
|
|
221
|
+
/**
|
|
222
|
+
* See
|
|
223
|
+
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.zoom_changed
|
|
224
|
+
*/
|
|
225
|
+
zoomChanged = this._eventManager.getLazyEmitter('zoom_changed');
|
|
98
226
|
constructor() {
|
|
99
|
-
this._elementRef = inject(ElementRef);
|
|
100
|
-
this._ngZone = inject(NgZone);
|
|
101
|
-
this._eventManager = new MapEventManager(inject(NgZone));
|
|
102
|
-
/** Height of the map. Set this to `null` if you'd like to control the height through CSS. */
|
|
103
|
-
this.height = DEFAULT_HEIGHT;
|
|
104
|
-
/** Width of the map. Set this to `null` if you'd like to control the width through CSS. */
|
|
105
|
-
this.width = DEFAULT_WIDTH;
|
|
106
|
-
this._options = DEFAULT_OPTIONS;
|
|
107
|
-
/** Event emitted when the map is initialized. */
|
|
108
|
-
this.mapInitialized = new EventEmitter();
|
|
109
|
-
/**
|
|
110
|
-
* See
|
|
111
|
-
* https://developers.google.com/maps/documentation/javascript/events#auth-errors
|
|
112
|
-
*/
|
|
113
|
-
this.authFailure = new EventEmitter();
|
|
114
|
-
/**
|
|
115
|
-
* See
|
|
116
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.bounds_changed
|
|
117
|
-
*/
|
|
118
|
-
this.boundsChanged = this._eventManager.getLazyEmitter('bounds_changed');
|
|
119
|
-
/**
|
|
120
|
-
* See
|
|
121
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.center_changed
|
|
122
|
-
*/
|
|
123
|
-
this.centerChanged = this._eventManager.getLazyEmitter('center_changed');
|
|
124
|
-
/**
|
|
125
|
-
* See
|
|
126
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.click
|
|
127
|
-
*/
|
|
128
|
-
this.mapClick = this._eventManager.getLazyEmitter('click');
|
|
129
|
-
/**
|
|
130
|
-
* See
|
|
131
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.dblclick
|
|
132
|
-
*/
|
|
133
|
-
this.mapDblclick = this._eventManager.getLazyEmitter('dblclick');
|
|
134
|
-
/**
|
|
135
|
-
* See
|
|
136
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.drag
|
|
137
|
-
*/
|
|
138
|
-
this.mapDrag = this._eventManager.getLazyEmitter('drag');
|
|
139
|
-
/**
|
|
140
|
-
* See
|
|
141
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.dragend
|
|
142
|
-
*/
|
|
143
|
-
this.mapDragend = this._eventManager.getLazyEmitter('dragend');
|
|
144
|
-
/**
|
|
145
|
-
* See
|
|
146
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.dragstart
|
|
147
|
-
*/
|
|
148
|
-
this.mapDragstart = this._eventManager.getLazyEmitter('dragstart');
|
|
149
|
-
/**
|
|
150
|
-
* See
|
|
151
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.heading_changed
|
|
152
|
-
*/
|
|
153
|
-
this.headingChanged = this._eventManager.getLazyEmitter('heading_changed');
|
|
154
|
-
/**
|
|
155
|
-
* See
|
|
156
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.idle
|
|
157
|
-
*/
|
|
158
|
-
this.idle = this._eventManager.getLazyEmitter('idle');
|
|
159
|
-
/**
|
|
160
|
-
* See
|
|
161
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.maptypeid_changed
|
|
162
|
-
*/
|
|
163
|
-
this.maptypeidChanged = this._eventManager.getLazyEmitter('maptypeid_changed');
|
|
164
|
-
/**
|
|
165
|
-
* See
|
|
166
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.mousemove
|
|
167
|
-
*/
|
|
168
|
-
this.mapMousemove = this._eventManager.getLazyEmitter('mousemove');
|
|
169
|
-
/**
|
|
170
|
-
* See
|
|
171
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.mouseout
|
|
172
|
-
*/
|
|
173
|
-
this.mapMouseout = this._eventManager.getLazyEmitter('mouseout');
|
|
174
|
-
/**
|
|
175
|
-
* See
|
|
176
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.mouseover
|
|
177
|
-
*/
|
|
178
|
-
this.mapMouseover = this._eventManager.getLazyEmitter('mouseover');
|
|
179
|
-
/**
|
|
180
|
-
* See
|
|
181
|
-
* developers.google.com/maps/documentation/javascript/reference/map#Map.projection_changed
|
|
182
|
-
*/
|
|
183
|
-
this.projectionChanged = this._eventManager.getLazyEmitter('projection_changed');
|
|
184
|
-
/**
|
|
185
|
-
* See
|
|
186
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.rightclick
|
|
187
|
-
*/
|
|
188
|
-
this.mapRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
189
|
-
/**
|
|
190
|
-
* See
|
|
191
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.tilesloaded
|
|
192
|
-
*/
|
|
193
|
-
this.tilesloaded = this._eventManager.getLazyEmitter('tilesloaded');
|
|
194
|
-
/**
|
|
195
|
-
* See
|
|
196
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.tilt_changed
|
|
197
|
-
*/
|
|
198
|
-
this.tiltChanged = this._eventManager.getLazyEmitter('tilt_changed');
|
|
199
|
-
/**
|
|
200
|
-
* See
|
|
201
|
-
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.zoom_changed
|
|
202
|
-
*/
|
|
203
|
-
this.zoomChanged = this._eventManager.getLazyEmitter('zoom_changed');
|
|
204
227
|
const platformId = inject(PLATFORM_ID);
|
|
205
228
|
this._isBrowser = isPlatformBrowser(platformId);
|
|
206
229
|
if (this._isBrowser) {
|
|
@@ -448,15 +471,14 @@ class GoogleMap {
|
|
|
448
471
|
'Please wait for the API to load before trying to interact with it.');
|
|
449
472
|
}
|
|
450
473
|
}
|
|
451
|
-
static
|
|
452
|
-
static
|
|
474
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: GoogleMap, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
475
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0-next.10", type: GoogleMap, isStandalone: true, selector: "google-map", inputs: { height: "height", width: "width", mapId: "mapId", mapTypeId: "mapTypeId", center: "center", zoom: "zoom", options: "options" }, outputs: { 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" }, exportAs: ["googleMap"], usesOnChanges: true, ngImport: i0, template: '<div class="map-container"></div><ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
453
476
|
}
|
|
454
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: GoogleMap, decorators: [{
|
|
455
478
|
type: Component,
|
|
456
479
|
args: [{
|
|
457
480
|
selector: 'google-map',
|
|
458
481
|
exportAs: 'googleMap',
|
|
459
|
-
standalone: true,
|
|
460
482
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
461
483
|
template: '<div class="map-container"></div><ng-content />',
|
|
462
484
|
encapsulation: ViewEncapsulation.None,
|
|
@@ -527,10 +549,9 @@ function coerceCssPixelValue(value) {
|
|
|
527
549
|
|
|
528
550
|
// Workaround for: https://github.com/bazelbuild/rules_nodejs/issues/1265
|
|
529
551
|
class MapBaseLayer {
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}
|
|
552
|
+
_map = inject(GoogleMap);
|
|
553
|
+
_ngZone = inject(NgZone);
|
|
554
|
+
constructor() { }
|
|
534
555
|
ngOnInit() {
|
|
535
556
|
if (this._map._isBrowser) {
|
|
536
557
|
this._ngZone.runOutsideAngular(() => {
|
|
@@ -552,15 +573,14 @@ class MapBaseLayer {
|
|
|
552
573
|
_initializeObject() { }
|
|
553
574
|
_setMap() { }
|
|
554
575
|
_unsetMap() { }
|
|
555
|
-
static
|
|
556
|
-
static
|
|
576
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapBaseLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
577
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapBaseLayer, isStandalone: true, selector: "map-base-layer", exportAs: ["mapBaseLayer"], ngImport: i0 });
|
|
557
578
|
}
|
|
558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapBaseLayer, decorators: [{
|
|
559
580
|
type: Directive,
|
|
560
581
|
args: [{
|
|
561
582
|
selector: 'map-base-layer',
|
|
562
583
|
exportAs: 'mapBaseLayer',
|
|
563
|
-
standalone: true,
|
|
564
584
|
}]
|
|
565
585
|
}], ctorParameters: () => [] });
|
|
566
586
|
|
|
@@ -571,12 +591,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
571
591
|
* See developers.google.com/maps/documentation/javascript/reference/map#BicyclingLayer
|
|
572
592
|
*/
|
|
573
593
|
class MapBicyclingLayer {
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
594
|
+
_map = inject(GoogleMap);
|
|
595
|
+
_zone = inject(NgZone);
|
|
596
|
+
/**
|
|
597
|
+
* The underlying google.maps.BicyclingLayer object.
|
|
598
|
+
*
|
|
599
|
+
* See developers.google.com/maps/documentation/javascript/reference/map#BicyclingLayer
|
|
600
|
+
*/
|
|
601
|
+
bicyclingLayer;
|
|
602
|
+
/** Event emitted when the bicycling layer is initialized. */
|
|
603
|
+
bicyclingLayerInitialized = new EventEmitter();
|
|
580
604
|
ngOnInit() {
|
|
581
605
|
if (this._map._isBrowser) {
|
|
582
606
|
if (google.maps.BicyclingLayer && this._map.googleMap) {
|
|
@@ -608,15 +632,14 @@ class MapBicyclingLayer {
|
|
|
608
632
|
'Please wait for the Transit Layer to load before trying to interact with it.');
|
|
609
633
|
}
|
|
610
634
|
}
|
|
611
|
-
static
|
|
612
|
-
static
|
|
635
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapBicyclingLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
636
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapBicyclingLayer, isStandalone: true, selector: "map-bicycling-layer", outputs: { bicyclingLayerInitialized: "bicyclingLayerInitialized" }, exportAs: ["mapBicyclingLayer"], ngImport: i0 });
|
|
613
637
|
}
|
|
614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapBicyclingLayer, decorators: [{
|
|
615
639
|
type: Directive,
|
|
616
640
|
args: [{
|
|
617
641
|
selector: 'map-bicycling-layer',
|
|
618
642
|
exportAs: 'mapBicyclingLayer',
|
|
619
|
-
standalone: true,
|
|
620
643
|
}]
|
|
621
644
|
}], propDecorators: { bicyclingLayerInitialized: [{
|
|
622
645
|
type: Output
|
|
@@ -628,6 +651,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
628
651
|
* @see developers.google.com/maps/documentation/javascript/reference/polygon#Circle
|
|
629
652
|
*/
|
|
630
653
|
class MapCircle {
|
|
654
|
+
_map = inject(GoogleMap);
|
|
655
|
+
_ngZone = inject(NgZone);
|
|
656
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
657
|
+
_options = new BehaviorSubject({});
|
|
658
|
+
_center = new BehaviorSubject(undefined);
|
|
659
|
+
_radius = new BehaviorSubject(undefined);
|
|
660
|
+
_destroyed = new Subject();
|
|
661
|
+
/**
|
|
662
|
+
* Underlying google.maps.Circle object.
|
|
663
|
+
*
|
|
664
|
+
* @see developers.google.com/maps/documentation/javascript/reference/polygon#Circle
|
|
665
|
+
*/
|
|
666
|
+
circle; // initialized in ngOnInit
|
|
631
667
|
set options(options) {
|
|
632
668
|
this._options.next(options || {});
|
|
633
669
|
}
|
|
@@ -637,82 +673,74 @@ class MapCircle {
|
|
|
637
673
|
set radius(radius) {
|
|
638
674
|
this._radius.next(radius);
|
|
639
675
|
}
|
|
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
|
-
* @see
|
|
710
|
-
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.rightclick
|
|
711
|
-
*/
|
|
712
|
-
this.circleRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
713
|
-
/** Event emitted when the circle is initialized. */
|
|
714
|
-
this.circleInitialized = new EventEmitter();
|
|
715
|
-
}
|
|
676
|
+
/**
|
|
677
|
+
* @see
|
|
678
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.center_changed
|
|
679
|
+
*/
|
|
680
|
+
centerChanged = this._eventManager.getLazyEmitter('center_changed');
|
|
681
|
+
/**
|
|
682
|
+
* @see
|
|
683
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.click
|
|
684
|
+
*/
|
|
685
|
+
circleClick = this._eventManager.getLazyEmitter('click');
|
|
686
|
+
/**
|
|
687
|
+
* @see
|
|
688
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.dblclick
|
|
689
|
+
*/
|
|
690
|
+
circleDblclick = this._eventManager.getLazyEmitter('dblclick');
|
|
691
|
+
/**
|
|
692
|
+
* @see
|
|
693
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.drag
|
|
694
|
+
*/
|
|
695
|
+
circleDrag = this._eventManager.getLazyEmitter('drag');
|
|
696
|
+
/**
|
|
697
|
+
* @see
|
|
698
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.dragend
|
|
699
|
+
*/
|
|
700
|
+
circleDragend = this._eventManager.getLazyEmitter('dragend');
|
|
701
|
+
/**
|
|
702
|
+
* @see
|
|
703
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.dragstart
|
|
704
|
+
*/
|
|
705
|
+
circleDragstart = this._eventManager.getLazyEmitter('dragstart');
|
|
706
|
+
/**
|
|
707
|
+
* @see
|
|
708
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mousedown
|
|
709
|
+
*/
|
|
710
|
+
circleMousedown = this._eventManager.getLazyEmitter('mousedown');
|
|
711
|
+
/**
|
|
712
|
+
* @see
|
|
713
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mousemove
|
|
714
|
+
*/
|
|
715
|
+
circleMousemove = this._eventManager.getLazyEmitter('mousemove');
|
|
716
|
+
/**
|
|
717
|
+
* @see
|
|
718
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mouseout
|
|
719
|
+
*/
|
|
720
|
+
circleMouseout = this._eventManager.getLazyEmitter('mouseout');
|
|
721
|
+
/**
|
|
722
|
+
* @see
|
|
723
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mouseover
|
|
724
|
+
*/
|
|
725
|
+
circleMouseover = this._eventManager.getLazyEmitter('mouseover');
|
|
726
|
+
/**
|
|
727
|
+
* @see
|
|
728
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mouseup
|
|
729
|
+
*/
|
|
730
|
+
circleMouseup = this._eventManager.getLazyEmitter('mouseup');
|
|
731
|
+
/**
|
|
732
|
+
* @see
|
|
733
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.radius_changed
|
|
734
|
+
*/
|
|
735
|
+
radiusChanged = this._eventManager.getLazyEmitter('radius_changed');
|
|
736
|
+
/**
|
|
737
|
+
* @see
|
|
738
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.rightclick
|
|
739
|
+
*/
|
|
740
|
+
circleRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
741
|
+
/** Event emitted when the circle is initialized. */
|
|
742
|
+
circleInitialized = new EventEmitter();
|
|
743
|
+
constructor() { }
|
|
716
744
|
ngOnInit() {
|
|
717
745
|
if (!this._map._isBrowser) {
|
|
718
746
|
return;
|
|
@@ -841,15 +869,14 @@ class MapCircle {
|
|
|
841
869
|
}
|
|
842
870
|
}
|
|
843
871
|
}
|
|
844
|
-
static
|
|
845
|
-
static
|
|
872
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapCircle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
873
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapCircle, isStandalone: true, selector: "map-circle", inputs: { options: "options", center: "center", radius: "radius" }, outputs: { 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" }, exportAs: ["mapCircle"], ngImport: i0 });
|
|
846
874
|
}
|
|
847
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapCircle, decorators: [{
|
|
848
876
|
type: Directive,
|
|
849
877
|
args: [{
|
|
850
878
|
selector: 'map-circle',
|
|
851
879
|
exportAs: 'mapCircle',
|
|
852
|
-
standalone: true,
|
|
853
880
|
}]
|
|
854
881
|
}], ctorParameters: () => [], propDecorators: { options: [{
|
|
855
882
|
type: Input
|
|
@@ -895,6 +922,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
895
922
|
* See developers.google.com/maps/documentation/javascript/reference/directions#DirectionsRenderer
|
|
896
923
|
*/
|
|
897
924
|
class MapDirectionsRenderer {
|
|
925
|
+
_googleMap = inject(GoogleMap);
|
|
926
|
+
_ngZone = inject(NgZone);
|
|
927
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
898
928
|
/**
|
|
899
929
|
* See developers.google.com/maps/documentation/javascript/reference/directions
|
|
900
930
|
* #DirectionsRendererOptions.directions
|
|
@@ -902,6 +932,7 @@ class MapDirectionsRenderer {
|
|
|
902
932
|
set directions(directions) {
|
|
903
933
|
this._directions = directions;
|
|
904
934
|
}
|
|
935
|
+
_directions;
|
|
905
936
|
/**
|
|
906
937
|
* See developers.google.com/maps/documentation/javascript/reference/directions
|
|
907
938
|
* #DirectionsRendererOptions
|
|
@@ -909,18 +940,17 @@ class MapDirectionsRenderer {
|
|
|
909
940
|
set options(options) {
|
|
910
941
|
this._options = options;
|
|
911
942
|
}
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
}
|
|
943
|
+
_options;
|
|
944
|
+
/**
|
|
945
|
+
* See developers.google.com/maps/documentation/javascript/reference/directions
|
|
946
|
+
* #DirectionsRenderer.directions_changed
|
|
947
|
+
*/
|
|
948
|
+
directionsChanged = this._eventManager.getLazyEmitter('directions_changed');
|
|
949
|
+
/** Event emitted when the directions renderer is initialized. */
|
|
950
|
+
directionsRendererInitialized = new EventEmitter();
|
|
951
|
+
/** The underlying google.maps.DirectionsRenderer object. */
|
|
952
|
+
directionsRenderer;
|
|
953
|
+
constructor() { }
|
|
924
954
|
ngOnInit() {
|
|
925
955
|
if (this._googleMap._isBrowser) {
|
|
926
956
|
if (google.maps.DirectionsRenderer && this._googleMap.googleMap) {
|
|
@@ -1002,15 +1032,14 @@ class MapDirectionsRenderer {
|
|
|
1002
1032
|
}
|
|
1003
1033
|
}
|
|
1004
1034
|
}
|
|
1005
|
-
static
|
|
1006
|
-
static
|
|
1035
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapDirectionsRenderer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1036
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapDirectionsRenderer, isStandalone: true, selector: "map-directions-renderer", inputs: { directions: "directions", options: "options" }, outputs: { directionsChanged: "directionsChanged", directionsRendererInitialized: "directionsRendererInitialized" }, exportAs: ["mapDirectionsRenderer"], usesOnChanges: true, ngImport: i0 });
|
|
1007
1037
|
}
|
|
1008
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapDirectionsRenderer, decorators: [{
|
|
1009
1039
|
type: Directive,
|
|
1010
1040
|
args: [{
|
|
1011
1041
|
selector: 'map-directions-renderer',
|
|
1012
1042
|
exportAs: 'mapDirectionsRenderer',
|
|
1013
|
-
standalone: true,
|
|
1014
1043
|
}]
|
|
1015
1044
|
}], ctorParameters: () => [], propDecorators: { directions: [{
|
|
1016
1045
|
type: Input
|
|
@@ -1029,6 +1058,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
1029
1058
|
* See developers.google.com/maps/documentation/javascript/reference/image-overlay#GroundOverlay
|
|
1030
1059
|
*/
|
|
1031
1060
|
class MapGroundOverlay {
|
|
1061
|
+
_map = inject(GoogleMap);
|
|
1062
|
+
_ngZone = inject(NgZone);
|
|
1063
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
1064
|
+
_opacity = new BehaviorSubject(1);
|
|
1065
|
+
_url = new BehaviorSubject('');
|
|
1066
|
+
_bounds = new BehaviorSubject(undefined);
|
|
1067
|
+
_destroyed = new Subject();
|
|
1068
|
+
_hasWatchers;
|
|
1069
|
+
/**
|
|
1070
|
+
* The underlying google.maps.GroundOverlay object.
|
|
1071
|
+
*
|
|
1072
|
+
* See developers.google.com/maps/documentation/javascript/reference/image-overlay#GroundOverlay
|
|
1073
|
+
*/
|
|
1074
|
+
groundOverlay;
|
|
1032
1075
|
/** URL of the image that will be shown in the overlay. */
|
|
1033
1076
|
set url(url) {
|
|
1034
1077
|
this._url.next(url);
|
|
@@ -1040,34 +1083,26 @@ class MapGroundOverlay {
|
|
|
1040
1083
|
set bounds(bounds) {
|
|
1041
1084
|
this._bounds.next(bounds);
|
|
1042
1085
|
}
|
|
1086
|
+
/** Whether the overlay is clickable */
|
|
1087
|
+
clickable = false;
|
|
1043
1088
|
/** Opacity of the overlay. */
|
|
1044
1089
|
set opacity(opacity) {
|
|
1045
1090
|
this._opacity.next(opacity);
|
|
1046
1091
|
}
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
this.mapClick = this._eventManager.getLazyEmitter('click');
|
|
1062
|
-
/**
|
|
1063
|
-
* See
|
|
1064
|
-
* developers.google.com/maps/documentation/javascript/reference/image-overlay
|
|
1065
|
-
* #GroundOverlay.dblclick
|
|
1066
|
-
*/
|
|
1067
|
-
this.mapDblclick = this._eventManager.getLazyEmitter('dblclick');
|
|
1068
|
-
/** Event emitted when the ground overlay is initialized. */
|
|
1069
|
-
this.groundOverlayInitialized = new EventEmitter();
|
|
1070
|
-
}
|
|
1092
|
+
/**
|
|
1093
|
+
* See
|
|
1094
|
+
* developers.google.com/maps/documentation/javascript/reference/image-overlay#GroundOverlay.click
|
|
1095
|
+
*/
|
|
1096
|
+
mapClick = this._eventManager.getLazyEmitter('click');
|
|
1097
|
+
/**
|
|
1098
|
+
* See
|
|
1099
|
+
* developers.google.com/maps/documentation/javascript/reference/image-overlay
|
|
1100
|
+
* #GroundOverlay.dblclick
|
|
1101
|
+
*/
|
|
1102
|
+
mapDblclick = this._eventManager.getLazyEmitter('dblclick');
|
|
1103
|
+
/** Event emitted when the ground overlay is initialized. */
|
|
1104
|
+
groundOverlayInitialized = new EventEmitter();
|
|
1105
|
+
constructor() { }
|
|
1071
1106
|
ngOnInit() {
|
|
1072
1107
|
if (this._map._isBrowser) {
|
|
1073
1108
|
// The ground overlay setup is slightly different from the other Google Maps objects in that
|
|
@@ -1174,15 +1209,14 @@ class MapGroundOverlay {
|
|
|
1174
1209
|
}
|
|
1175
1210
|
}
|
|
1176
1211
|
}
|
|
1177
|
-
static
|
|
1178
|
-
static
|
|
1212
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapGroundOverlay, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1213
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapGroundOverlay, isStandalone: true, selector: "map-ground-overlay", inputs: { url: "url", bounds: "bounds", clickable: "clickable", opacity: "opacity" }, outputs: { mapClick: "mapClick", mapDblclick: "mapDblclick", groundOverlayInitialized: "groundOverlayInitialized" }, exportAs: ["mapGroundOverlay"], ngImport: i0 });
|
|
1179
1214
|
}
|
|
1180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapGroundOverlay, decorators: [{
|
|
1181
1216
|
type: Directive,
|
|
1182
1217
|
args: [{
|
|
1183
1218
|
selector: 'map-ground-overlay',
|
|
1184
1219
|
exportAs: 'mapGroundOverlay',
|
|
1185
|
-
standalone: true,
|
|
1186
1220
|
}]
|
|
1187
1221
|
}], ctorParameters: () => [], propDecorators: { url: [{
|
|
1188
1222
|
type: Input
|
|
@@ -1207,51 +1241,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
1207
1241
|
* See developers.google.com/maps/documentation/javascript/reference/info-window
|
|
1208
1242
|
*/
|
|
1209
1243
|
class MapInfoWindow {
|
|
1244
|
+
_googleMap = inject(GoogleMap);
|
|
1245
|
+
_elementRef = inject(ElementRef);
|
|
1246
|
+
_ngZone = inject(NgZone);
|
|
1247
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
1248
|
+
_options = new BehaviorSubject({});
|
|
1249
|
+
_position = new BehaviorSubject(undefined);
|
|
1250
|
+
_destroy = new Subject();
|
|
1251
|
+
/**
|
|
1252
|
+
* Underlying google.maps.InfoWindow
|
|
1253
|
+
*
|
|
1254
|
+
* See developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindow
|
|
1255
|
+
*/
|
|
1256
|
+
infoWindow;
|
|
1210
1257
|
set options(options) {
|
|
1211
1258
|
this._options.next(options || {});
|
|
1212
1259
|
}
|
|
1213
1260
|
set position(position) {
|
|
1214
1261
|
this._position.next(position);
|
|
1215
1262
|
}
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
* See
|
|
1248
|
-
* developers.google.com/maps/documentation/javascript/reference/info-window
|
|
1249
|
-
* #InfoWindow.zindex_changed
|
|
1250
|
-
*/
|
|
1251
|
-
this.zindexChanged = this._eventManager.getLazyEmitter('zindex_changed');
|
|
1252
|
-
/** Event emitted when the info window is initialized. */
|
|
1253
|
-
this.infoWindowInitialized = new EventEmitter();
|
|
1254
|
-
}
|
|
1263
|
+
/**
|
|
1264
|
+
* See
|
|
1265
|
+
* developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindow.closeclick
|
|
1266
|
+
*/
|
|
1267
|
+
closeclick = this._eventManager.getLazyEmitter('closeclick');
|
|
1268
|
+
/**
|
|
1269
|
+
* See
|
|
1270
|
+
* developers.google.com/maps/documentation/javascript/reference/info-window
|
|
1271
|
+
* #InfoWindow.content_changed
|
|
1272
|
+
*/
|
|
1273
|
+
contentChanged = this._eventManager.getLazyEmitter('content_changed');
|
|
1274
|
+
/**
|
|
1275
|
+
* See
|
|
1276
|
+
* developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindow.domready
|
|
1277
|
+
*/
|
|
1278
|
+
domready = this._eventManager.getLazyEmitter('domready');
|
|
1279
|
+
/**
|
|
1280
|
+
* See
|
|
1281
|
+
* developers.google.com/maps/documentation/javascript/reference/info-window
|
|
1282
|
+
* #InfoWindow.position_changed
|
|
1283
|
+
*/
|
|
1284
|
+
positionChanged = this._eventManager.getLazyEmitter('position_changed');
|
|
1285
|
+
/**
|
|
1286
|
+
* See
|
|
1287
|
+
* developers.google.com/maps/documentation/javascript/reference/info-window
|
|
1288
|
+
* #InfoWindow.zindex_changed
|
|
1289
|
+
*/
|
|
1290
|
+
zindexChanged = this._eventManager.getLazyEmitter('zindex_changed');
|
|
1291
|
+
/** Event emitted when the info window is initialized. */
|
|
1292
|
+
infoWindowInitialized = new EventEmitter();
|
|
1293
|
+
constructor() { }
|
|
1255
1294
|
ngOnInit() {
|
|
1256
1295
|
if (this._googleMap._isBrowser) {
|
|
1257
1296
|
this._combineOptions()
|
|
@@ -1394,15 +1433,14 @@ class MapInfoWindow {
|
|
|
1394
1433
|
}
|
|
1395
1434
|
}
|
|
1396
1435
|
}
|
|
1397
|
-
static
|
|
1398
|
-
static
|
|
1436
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapInfoWindow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1437
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapInfoWindow, isStandalone: true, selector: "map-info-window", inputs: { options: "options", position: "position" }, outputs: { closeclick: "closeclick", contentChanged: "contentChanged", domready: "domready", positionChanged: "positionChanged", zindexChanged: "zindexChanged", infoWindowInitialized: "infoWindowInitialized" }, host: { styleAttribute: "display: none" }, exportAs: ["mapInfoWindow"], ngImport: i0 });
|
|
1399
1438
|
}
|
|
1400
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapInfoWindow, decorators: [{
|
|
1401
1440
|
type: Directive,
|
|
1402
1441
|
args: [{
|
|
1403
1442
|
selector: 'map-info-window',
|
|
1404
1443
|
exportAs: 'mapInfoWindow',
|
|
1405
|
-
standalone: true,
|
|
1406
1444
|
host: { 'style': 'display: none' },
|
|
1407
1445
|
}]
|
|
1408
1446
|
}], ctorParameters: () => [], propDecorators: { options: [{
|
|
@@ -1430,36 +1468,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
1430
1468
|
* See developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer
|
|
1431
1469
|
*/
|
|
1432
1470
|
class MapKmlLayer {
|
|
1471
|
+
_map = inject(GoogleMap);
|
|
1472
|
+
_ngZone = inject(NgZone);
|
|
1473
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
1474
|
+
_options = new BehaviorSubject({});
|
|
1475
|
+
_url = new BehaviorSubject('');
|
|
1476
|
+
_destroyed = new Subject();
|
|
1477
|
+
/**
|
|
1478
|
+
* The underlying google.maps.KmlLayer object.
|
|
1479
|
+
*
|
|
1480
|
+
* See developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer
|
|
1481
|
+
*/
|
|
1482
|
+
kmlLayer;
|
|
1433
1483
|
set options(options) {
|
|
1434
1484
|
this._options.next(options || {});
|
|
1435
1485
|
}
|
|
1436
1486
|
set url(url) {
|
|
1437
1487
|
this._url.next(url);
|
|
1438
1488
|
}
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
/**
|
|
1457
|
-
* See developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer.status_changed
|
|
1458
|
-
*/
|
|
1459
|
-
this.statusChanged = this._eventManager.getLazyEmitter('status_changed');
|
|
1460
|
-
/** Event emitted when the KML layer is initialized. */
|
|
1461
|
-
this.kmlLayerInitialized = new EventEmitter();
|
|
1462
|
-
}
|
|
1489
|
+
/**
|
|
1490
|
+
* See developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer.click
|
|
1491
|
+
*/
|
|
1492
|
+
kmlClick = this._eventManager.getLazyEmitter('click');
|
|
1493
|
+
/**
|
|
1494
|
+
* See
|
|
1495
|
+
* developers.google.com/maps/documentation/javascript/reference/kml
|
|
1496
|
+
* #KmlLayer.defaultviewport_changed
|
|
1497
|
+
*/
|
|
1498
|
+
defaultviewportChanged = this._eventManager.getLazyEmitter('defaultviewport_changed');
|
|
1499
|
+
/**
|
|
1500
|
+
* See developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer.status_changed
|
|
1501
|
+
*/
|
|
1502
|
+
statusChanged = this._eventManager.getLazyEmitter('status_changed');
|
|
1503
|
+
/** Event emitted when the KML layer is initialized. */
|
|
1504
|
+
kmlLayerInitialized = new EventEmitter();
|
|
1505
|
+
constructor() { }
|
|
1463
1506
|
ngOnInit() {
|
|
1464
1507
|
if (this._map._isBrowser) {
|
|
1465
1508
|
this._combineOptions()
|
|
@@ -1567,15 +1610,14 @@ class MapKmlLayer {
|
|
|
1567
1610
|
}
|
|
1568
1611
|
}
|
|
1569
1612
|
}
|
|
1570
|
-
static
|
|
1571
|
-
static
|
|
1613
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapKmlLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1614
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapKmlLayer, isStandalone: true, selector: "map-kml-layer", inputs: { options: "options", url: "url" }, outputs: { kmlClick: "kmlClick", defaultviewportChanged: "defaultviewportChanged", statusChanged: "statusChanged", kmlLayerInitialized: "kmlLayerInitialized" }, exportAs: ["mapKmlLayer"], ngImport: i0 });
|
|
1572
1615
|
}
|
|
1573
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1616
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapKmlLayer, decorators: [{
|
|
1574
1617
|
type: Directive,
|
|
1575
1618
|
args: [{
|
|
1576
1619
|
selector: 'map-kml-layer',
|
|
1577
1620
|
exportAs: 'mapKmlLayer',
|
|
1578
|
-
standalone: true,
|
|
1579
1621
|
}]
|
|
1580
1622
|
}], ctorParameters: () => [], propDecorators: { options: [{
|
|
1581
1623
|
type: Input
|
|
@@ -1591,6 +1633,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
1591
1633
|
type: Output
|
|
1592
1634
|
}] } });
|
|
1593
1635
|
|
|
1636
|
+
/** Token that marker directives can use to expose themselves to the clusterer. */
|
|
1637
|
+
const MAP_MARKER = new InjectionToken('MAP_MARKER');
|
|
1638
|
+
|
|
1594
1639
|
// Workaround for: https://github.com/bazelbuild/rules_nodejs/issues/1265
|
|
1595
1640
|
/**
|
|
1596
1641
|
* Default options for the Google Maps marker component. Displays a marker
|
|
@@ -1605,6 +1650,9 @@ const DEFAULT_MARKER_OPTIONS$1 = {
|
|
|
1605
1650
|
* See developers.google.com/maps/documentation/javascript/reference/marker
|
|
1606
1651
|
*/
|
|
1607
1652
|
class MapMarker {
|
|
1653
|
+
_googleMap = inject(GoogleMap);
|
|
1654
|
+
_ngZone = inject(NgZone);
|
|
1655
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
1608
1656
|
/**
|
|
1609
1657
|
* Title of the marker.
|
|
1610
1658
|
* See: developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.title
|
|
@@ -1612,6 +1660,7 @@ class MapMarker {
|
|
|
1612
1660
|
set title(title) {
|
|
1613
1661
|
this._title = title;
|
|
1614
1662
|
}
|
|
1663
|
+
_title;
|
|
1615
1664
|
/**
|
|
1616
1665
|
* Position of the marker. See:
|
|
1617
1666
|
* developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.position
|
|
@@ -1619,6 +1668,7 @@ class MapMarker {
|
|
|
1619
1668
|
set position(position) {
|
|
1620
1669
|
this._position = position;
|
|
1621
1670
|
}
|
|
1671
|
+
_position;
|
|
1622
1672
|
/**
|
|
1623
1673
|
* Label for the marker.
|
|
1624
1674
|
* See: developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.label
|
|
@@ -1626,6 +1676,7 @@ class MapMarker {
|
|
|
1626
1676
|
set label(label) {
|
|
1627
1677
|
this._label = label;
|
|
1628
1678
|
}
|
|
1679
|
+
_label;
|
|
1629
1680
|
/**
|
|
1630
1681
|
* Whether the marker is clickable. See:
|
|
1631
1682
|
* developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.clickable
|
|
@@ -1633,6 +1684,7 @@ class MapMarker {
|
|
|
1633
1684
|
set clickable(clickable) {
|
|
1634
1685
|
this._clickable = clickable;
|
|
1635
1686
|
}
|
|
1687
|
+
_clickable;
|
|
1636
1688
|
/**
|
|
1637
1689
|
* Options used to configure the marker.
|
|
1638
1690
|
* See: developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions
|
|
@@ -1640,6 +1692,7 @@ class MapMarker {
|
|
|
1640
1692
|
set options(options) {
|
|
1641
1693
|
this._options = options;
|
|
1642
1694
|
}
|
|
1695
|
+
_options;
|
|
1643
1696
|
/**
|
|
1644
1697
|
* Icon to be used for the marker.
|
|
1645
1698
|
* See: https://developers.google.com/maps/documentation/javascript/reference/marker#Icon
|
|
@@ -1647,6 +1700,7 @@ class MapMarker {
|
|
|
1647
1700
|
set icon(icon) {
|
|
1648
1701
|
this._icon = icon;
|
|
1649
1702
|
}
|
|
1703
|
+
_icon;
|
|
1650
1704
|
/**
|
|
1651
1705
|
* Whether the marker is visible.
|
|
1652
1706
|
* See: developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.visible
|
|
@@ -1654,118 +1708,121 @@ class MapMarker {
|
|
|
1654
1708
|
set visible(value) {
|
|
1655
1709
|
this._visible = value;
|
|
1656
1710
|
}
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1711
|
+
_visible;
|
|
1712
|
+
/**
|
|
1713
|
+
* See
|
|
1714
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.animation_changed
|
|
1715
|
+
*/
|
|
1716
|
+
animationChanged = this._eventManager.getLazyEmitter('animation_changed');
|
|
1717
|
+
/**
|
|
1718
|
+
* See
|
|
1719
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.click
|
|
1720
|
+
*/
|
|
1721
|
+
mapClick = this._eventManager.getLazyEmitter('click');
|
|
1722
|
+
/**
|
|
1723
|
+
* See
|
|
1724
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.clickable_changed
|
|
1725
|
+
*/
|
|
1726
|
+
clickableChanged = this._eventManager.getLazyEmitter('clickable_changed');
|
|
1727
|
+
/**
|
|
1728
|
+
* See
|
|
1729
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.cursor_changed
|
|
1730
|
+
*/
|
|
1731
|
+
cursorChanged = this._eventManager.getLazyEmitter('cursor_changed');
|
|
1732
|
+
/**
|
|
1733
|
+
* See
|
|
1734
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.dblclick
|
|
1735
|
+
*/
|
|
1736
|
+
mapDblclick = this._eventManager.getLazyEmitter('dblclick');
|
|
1737
|
+
/**
|
|
1738
|
+
* See
|
|
1739
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.drag
|
|
1740
|
+
*/
|
|
1741
|
+
mapDrag = this._eventManager.getLazyEmitter('drag');
|
|
1742
|
+
/**
|
|
1743
|
+
* See
|
|
1744
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.dragend
|
|
1745
|
+
*/
|
|
1746
|
+
mapDragend = this._eventManager.getLazyEmitter('dragend');
|
|
1747
|
+
/**
|
|
1748
|
+
* See
|
|
1749
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.draggable_changed
|
|
1750
|
+
*/
|
|
1751
|
+
draggableChanged = this._eventManager.getLazyEmitter('draggable_changed');
|
|
1752
|
+
/**
|
|
1753
|
+
* See
|
|
1754
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.dragstart
|
|
1755
|
+
*/
|
|
1756
|
+
mapDragstart = this._eventManager.getLazyEmitter('dragstart');
|
|
1757
|
+
/**
|
|
1758
|
+
* See
|
|
1759
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.flat_changed
|
|
1760
|
+
*/
|
|
1761
|
+
flatChanged = this._eventManager.getLazyEmitter('flat_changed');
|
|
1762
|
+
/**
|
|
1763
|
+
* See
|
|
1764
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.icon_changed
|
|
1765
|
+
*/
|
|
1766
|
+
iconChanged = this._eventManager.getLazyEmitter('icon_changed');
|
|
1767
|
+
/**
|
|
1768
|
+
* See
|
|
1769
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.mousedown
|
|
1770
|
+
*/
|
|
1771
|
+
mapMousedown = this._eventManager.getLazyEmitter('mousedown');
|
|
1772
|
+
/**
|
|
1773
|
+
* See
|
|
1774
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.mouseout
|
|
1775
|
+
*/
|
|
1776
|
+
mapMouseout = this._eventManager.getLazyEmitter('mouseout');
|
|
1777
|
+
/**
|
|
1778
|
+
* See
|
|
1779
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.mouseover
|
|
1780
|
+
*/
|
|
1781
|
+
mapMouseover = this._eventManager.getLazyEmitter('mouseover');
|
|
1782
|
+
/**
|
|
1783
|
+
* See
|
|
1784
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.mouseup
|
|
1785
|
+
*/
|
|
1786
|
+
mapMouseup = this._eventManager.getLazyEmitter('mouseup');
|
|
1787
|
+
/**
|
|
1788
|
+
* See
|
|
1789
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.position_changed
|
|
1790
|
+
*/
|
|
1791
|
+
positionChanged = this._eventManager.getLazyEmitter('position_changed');
|
|
1792
|
+
/**
|
|
1793
|
+
* See
|
|
1794
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.rightclick
|
|
1795
|
+
*/
|
|
1796
|
+
mapRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
1797
|
+
/**
|
|
1798
|
+
* See
|
|
1799
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.shape_changed
|
|
1800
|
+
*/
|
|
1801
|
+
shapeChanged = this._eventManager.getLazyEmitter('shape_changed');
|
|
1802
|
+
/**
|
|
1803
|
+
* See
|
|
1804
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.title_changed
|
|
1805
|
+
*/
|
|
1806
|
+
titleChanged = this._eventManager.getLazyEmitter('title_changed');
|
|
1807
|
+
/**
|
|
1808
|
+
* See
|
|
1809
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.visible_changed
|
|
1810
|
+
*/
|
|
1811
|
+
visibleChanged = this._eventManager.getLazyEmitter('visible_changed');
|
|
1812
|
+
/**
|
|
1813
|
+
* See
|
|
1814
|
+
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.zindex_changed
|
|
1815
|
+
*/
|
|
1816
|
+
zindexChanged = this._eventManager.getLazyEmitter('zindex_changed');
|
|
1817
|
+
/** Event emitted when the marker is initialized. */
|
|
1818
|
+
markerInitialized = new EventEmitter();
|
|
1819
|
+
/**
|
|
1820
|
+
* The underlying google.maps.Marker object.
|
|
1821
|
+
*
|
|
1822
|
+
* See developers.google.com/maps/documentation/javascript/reference/marker#Marker
|
|
1823
|
+
*/
|
|
1824
|
+
marker;
|
|
1825
|
+
constructor() { }
|
|
1769
1826
|
ngOnInit() {
|
|
1770
1827
|
if (!this._googleMap._isBrowser) {
|
|
1771
1828
|
return;
|
|
@@ -1953,15 +2010,25 @@ class MapMarker {
|
|
|
1953
2010
|
}
|
|
1954
2011
|
}
|
|
1955
2012
|
}
|
|
1956
|
-
static
|
|
1957
|
-
static
|
|
2013
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapMarker, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2014
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapMarker, isStandalone: true, selector: "map-marker", inputs: { title: "title", position: "position", label: "label", clickable: "clickable", options: "options", icon: "icon", visible: "visible" }, outputs: { animationChanged: "animationChanged", mapClick: "mapClick", clickableChanged: "clickableChanged", cursorChanged: "cursorChanged", mapDblclick: "mapDblclick", mapDrag: "mapDrag", mapDragend: "mapDragend", draggableChanged: "draggableChanged", mapDragstart: "mapDragstart", flatChanged: "flatChanged", iconChanged: "iconChanged", mapMousedown: "mapMousedown", mapMouseout: "mapMouseout", mapMouseover: "mapMouseover", mapMouseup: "mapMouseup", positionChanged: "positionChanged", mapRightclick: "mapRightclick", shapeChanged: "shapeChanged", titleChanged: "titleChanged", visibleChanged: "visibleChanged", zindexChanged: "zindexChanged", markerInitialized: "markerInitialized" }, providers: [
|
|
2015
|
+
{
|
|
2016
|
+
provide: MAP_MARKER,
|
|
2017
|
+
useExisting: MapMarker,
|
|
2018
|
+
},
|
|
2019
|
+
], exportAs: ["mapMarker"], usesOnChanges: true, ngImport: i0 });
|
|
1958
2020
|
}
|
|
1959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
2021
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapMarker, decorators: [{
|
|
1960
2022
|
type: Directive,
|
|
1961
2023
|
args: [{
|
|
1962
2024
|
selector: 'map-marker',
|
|
1963
2025
|
exportAs: 'mapMarker',
|
|
1964
|
-
|
|
2026
|
+
providers: [
|
|
2027
|
+
{
|
|
2028
|
+
provide: MAP_MARKER,
|
|
2029
|
+
useExisting: MapMarker,
|
|
2030
|
+
},
|
|
2031
|
+
],
|
|
1965
2032
|
}]
|
|
1966
2033
|
}], ctorParameters: () => [], propDecorators: { title: [{
|
|
1967
2034
|
type: Input
|
|
@@ -2028,86 +2095,116 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
2028
2095
|
const DEFAULT_CLUSTERER_OPTIONS = {};
|
|
2029
2096
|
/**
|
|
2030
2097
|
* Angular component for implementing a Google Maps Marker Clusterer.
|
|
2031
|
-
*
|
|
2032
2098
|
* See https://developers.google.com/maps/documentation/javascript/marker-clustering
|
|
2099
|
+
*
|
|
2100
|
+
* @deprecated This component is using a deprecated clustering implementation. Use the
|
|
2101
|
+
* `map-marker-clusterer` component instead.
|
|
2102
|
+
* @breaking-change 21.0.0
|
|
2103
|
+
*
|
|
2033
2104
|
*/
|
|
2034
|
-
class
|
|
2105
|
+
class DeprecatedMapMarkerClusterer {
|
|
2106
|
+
_googleMap = inject(GoogleMap);
|
|
2107
|
+
_ngZone = inject(NgZone);
|
|
2108
|
+
_currentMarkers = new Set();
|
|
2109
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
2110
|
+
_destroy = new Subject();
|
|
2111
|
+
/** Whether the clusterer is allowed to be initialized. */
|
|
2112
|
+
_canInitialize = this._googleMap._isBrowser;
|
|
2113
|
+
ariaLabelFn = () => '';
|
|
2035
2114
|
set averageCenter(averageCenter) {
|
|
2036
2115
|
this._averageCenter = averageCenter;
|
|
2037
2116
|
}
|
|
2117
|
+
_averageCenter;
|
|
2118
|
+
batchSize;
|
|
2038
2119
|
set batchSizeIE(batchSizeIE) {
|
|
2039
2120
|
this._batchSizeIE = batchSizeIE;
|
|
2040
2121
|
}
|
|
2122
|
+
_batchSizeIE;
|
|
2041
2123
|
set calculator(calculator) {
|
|
2042
2124
|
this._calculator = calculator;
|
|
2043
2125
|
}
|
|
2126
|
+
_calculator;
|
|
2044
2127
|
set clusterClass(clusterClass) {
|
|
2045
2128
|
this._clusterClass = clusterClass;
|
|
2046
2129
|
}
|
|
2130
|
+
_clusterClass;
|
|
2047
2131
|
set enableRetinaIcons(enableRetinaIcons) {
|
|
2048
2132
|
this._enableRetinaIcons = enableRetinaIcons;
|
|
2049
2133
|
}
|
|
2134
|
+
_enableRetinaIcons;
|
|
2050
2135
|
set gridSize(gridSize) {
|
|
2051
2136
|
this._gridSize = gridSize;
|
|
2052
2137
|
}
|
|
2138
|
+
_gridSize;
|
|
2053
2139
|
set ignoreHidden(ignoreHidden) {
|
|
2054
2140
|
this._ignoreHidden = ignoreHidden;
|
|
2055
2141
|
}
|
|
2142
|
+
_ignoreHidden;
|
|
2056
2143
|
set imageExtension(imageExtension) {
|
|
2057
2144
|
this._imageExtension = imageExtension;
|
|
2058
2145
|
}
|
|
2146
|
+
_imageExtension;
|
|
2059
2147
|
set imagePath(imagePath) {
|
|
2060
2148
|
this._imagePath = imagePath;
|
|
2061
2149
|
}
|
|
2150
|
+
_imagePath;
|
|
2062
2151
|
set imageSizes(imageSizes) {
|
|
2063
2152
|
this._imageSizes = imageSizes;
|
|
2064
2153
|
}
|
|
2154
|
+
_imageSizes;
|
|
2065
2155
|
set maxZoom(maxZoom) {
|
|
2066
2156
|
this._maxZoom = maxZoom;
|
|
2067
2157
|
}
|
|
2158
|
+
_maxZoom;
|
|
2068
2159
|
set minimumClusterSize(minimumClusterSize) {
|
|
2069
2160
|
this._minimumClusterSize = minimumClusterSize;
|
|
2070
2161
|
}
|
|
2162
|
+
_minimumClusterSize;
|
|
2071
2163
|
set styles(styles) {
|
|
2072
2164
|
this._styles = styles;
|
|
2073
2165
|
}
|
|
2166
|
+
_styles;
|
|
2074
2167
|
set title(title) {
|
|
2075
2168
|
this._title = title;
|
|
2076
2169
|
}
|
|
2170
|
+
_title;
|
|
2077
2171
|
set zIndex(zIndex) {
|
|
2078
2172
|
this._zIndex = zIndex;
|
|
2079
2173
|
}
|
|
2174
|
+
_zIndex;
|
|
2080
2175
|
set zoomOnClick(zoomOnClick) {
|
|
2081
2176
|
this._zoomOnClick = zoomOnClick;
|
|
2082
2177
|
}
|
|
2178
|
+
_zoomOnClick;
|
|
2083
2179
|
set options(options) {
|
|
2084
2180
|
this._options = options;
|
|
2085
2181
|
}
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2182
|
+
_options;
|
|
2183
|
+
/**
|
|
2184
|
+
* See
|
|
2185
|
+
* googlemaps.github.io/v3-utility-library/modules/
|
|
2186
|
+
* _google_markerclustererplus.html#clusteringbegin
|
|
2187
|
+
*/
|
|
2188
|
+
clusteringbegin = this._eventManager.getLazyEmitter('clusteringbegin');
|
|
2189
|
+
/**
|
|
2190
|
+
* See
|
|
2191
|
+
* googlemaps.github.io/v3-utility-library/modules/_google_markerclustererplus.html#clusteringend
|
|
2192
|
+
*/
|
|
2193
|
+
clusteringend = this._eventManager.getLazyEmitter('clusteringend');
|
|
2194
|
+
/** Emits when a cluster has been clicked. */
|
|
2195
|
+
clusterClick = this._eventManager.getLazyEmitter('click');
|
|
2196
|
+
_markers;
|
|
2197
|
+
/**
|
|
2198
|
+
* The underlying MarkerClusterer object.
|
|
2199
|
+
*
|
|
2200
|
+
* See
|
|
2201
|
+
* googlemaps.github.io/v3-utility-library/classes/
|
|
2202
|
+
* _google_markerclustererplus.markerclusterer.html
|
|
2203
|
+
*/
|
|
2204
|
+
markerClusterer;
|
|
2205
|
+
/** Event emitted when the clusterer is initialized. */
|
|
2206
|
+
markerClustererInitialized = new EventEmitter();
|
|
2207
|
+
constructor() { }
|
|
2111
2208
|
ngOnInit() {
|
|
2112
2209
|
if (this._canInitialize) {
|
|
2113
2210
|
this._ngZone.runOutsideAngular(() => {
|
|
@@ -2365,16 +2462,15 @@ class MapMarkerClusterer {
|
|
|
2365
2462
|
}
|
|
2366
2463
|
}
|
|
2367
2464
|
}
|
|
2368
|
-
static
|
|
2369
|
-
static
|
|
2465
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: DeprecatedMapMarkerClusterer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2466
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0-next.10", type: DeprecatedMapMarkerClusterer, isStandalone: true, selector: "deprecated-map-marker-clusterer", inputs: { ariaLabelFn: "ariaLabelFn", averageCenter: "averageCenter", batchSize: "batchSize", batchSizeIE: "batchSizeIE", calculator: "calculator", clusterClass: "clusterClass", enableRetinaIcons: "enableRetinaIcons", gridSize: "gridSize", ignoreHidden: "ignoreHidden", imageExtension: "imageExtension", imagePath: "imagePath", imageSizes: "imageSizes", maxZoom: "maxZoom", minimumClusterSize: "minimumClusterSize", styles: "styles", title: "title", zIndex: "zIndex", zoomOnClick: "zoomOnClick", options: "options" }, outputs: { clusteringbegin: "clusteringbegin", clusteringend: "clusteringend", clusterClick: "clusterClick", markerClustererInitialized: "markerClustererInitialized" }, queries: [{ propertyName: "_markers", predicate: MapMarker, descendants: true }], exportAs: ["mapMarkerClusterer"], usesOnChanges: true, ngImport: i0, template: '<ng-content/>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2370
2467
|
}
|
|
2371
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
2468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: DeprecatedMapMarkerClusterer, decorators: [{
|
|
2372
2469
|
type: Component,
|
|
2373
2470
|
args: [{
|
|
2374
|
-
selector: 'map-marker-clusterer',
|
|
2471
|
+
selector: 'deprecated-map-marker-clusterer',
|
|
2375
2472
|
exportAs: 'mapMarkerClusterer',
|
|
2376
2473
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2377
|
-
standalone: true,
|
|
2378
2474
|
template: '<ng-content/>',
|
|
2379
2475
|
encapsulation: ViewEncapsulation.None,
|
|
2380
2476
|
}]
|
|
@@ -2436,66 +2532,71 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
2436
2532
|
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon
|
|
2437
2533
|
*/
|
|
2438
2534
|
class MapPolygon {
|
|
2535
|
+
_map = inject(GoogleMap);
|
|
2536
|
+
_ngZone = inject(NgZone);
|
|
2537
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
2538
|
+
_options = new BehaviorSubject({});
|
|
2539
|
+
_paths = new BehaviorSubject(undefined);
|
|
2540
|
+
_destroyed = new Subject();
|
|
2541
|
+
/**
|
|
2542
|
+
* The underlying google.maps.Polygon object.
|
|
2543
|
+
*
|
|
2544
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon
|
|
2545
|
+
*/
|
|
2546
|
+
polygon;
|
|
2439
2547
|
set options(options) {
|
|
2440
2548
|
this._options.next(options || {});
|
|
2441
2549
|
}
|
|
2442
2550
|
set paths(paths) {
|
|
2443
2551
|
this._paths.next(paths);
|
|
2444
2552
|
}
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
/**
|
|
2493
|
-
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.rightclick
|
|
2494
|
-
*/
|
|
2495
|
-
this.polygonRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
2496
|
-
/** Event emitted when the polygon is initialized. */
|
|
2497
|
-
this.polygonInitialized = new EventEmitter();
|
|
2498
|
-
}
|
|
2553
|
+
/**
|
|
2554
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.click
|
|
2555
|
+
*/
|
|
2556
|
+
polygonClick = this._eventManager.getLazyEmitter('click');
|
|
2557
|
+
/**
|
|
2558
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.dblclick
|
|
2559
|
+
*/
|
|
2560
|
+
polygonDblclick = this._eventManager.getLazyEmitter('dblclick');
|
|
2561
|
+
/**
|
|
2562
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.drag
|
|
2563
|
+
*/
|
|
2564
|
+
polygonDrag = this._eventManager.getLazyEmitter('drag');
|
|
2565
|
+
/**
|
|
2566
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.dragend
|
|
2567
|
+
*/
|
|
2568
|
+
polygonDragend = this._eventManager.getLazyEmitter('dragend');
|
|
2569
|
+
/**
|
|
2570
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.dragstart
|
|
2571
|
+
*/
|
|
2572
|
+
polygonDragstart = this._eventManager.getLazyEmitter('dragstart');
|
|
2573
|
+
/**
|
|
2574
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.mousedown
|
|
2575
|
+
*/
|
|
2576
|
+
polygonMousedown = this._eventManager.getLazyEmitter('mousedown');
|
|
2577
|
+
/**
|
|
2578
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.mousemove
|
|
2579
|
+
*/
|
|
2580
|
+
polygonMousemove = this._eventManager.getLazyEmitter('mousemove');
|
|
2581
|
+
/**
|
|
2582
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.mouseout
|
|
2583
|
+
*/
|
|
2584
|
+
polygonMouseout = this._eventManager.getLazyEmitter('mouseout');
|
|
2585
|
+
/**
|
|
2586
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.mouseover
|
|
2587
|
+
*/
|
|
2588
|
+
polygonMouseover = this._eventManager.getLazyEmitter('mouseover');
|
|
2589
|
+
/**
|
|
2590
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.mouseup
|
|
2591
|
+
*/
|
|
2592
|
+
polygonMouseup = this._eventManager.getLazyEmitter('mouseup');
|
|
2593
|
+
/**
|
|
2594
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.rightclick
|
|
2595
|
+
*/
|
|
2596
|
+
polygonRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
2597
|
+
/** Event emitted when the polygon is initialized. */
|
|
2598
|
+
polygonInitialized = new EventEmitter();
|
|
2599
|
+
constructor() { }
|
|
2499
2600
|
ngOnInit() {
|
|
2500
2601
|
if (this._map._isBrowser) {
|
|
2501
2602
|
this._combineOptions()
|
|
@@ -2601,15 +2702,14 @@ class MapPolygon {
|
|
|
2601
2702
|
}
|
|
2602
2703
|
}
|
|
2603
2704
|
}
|
|
2604
|
-
static
|
|
2605
|
-
static
|
|
2705
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapPolygon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2706
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapPolygon, isStandalone: true, selector: "map-polygon", inputs: { options: "options", paths: "paths" }, outputs: { polygonClick: "polygonClick", polygonDblclick: "polygonDblclick", polygonDrag: "polygonDrag", polygonDragend: "polygonDragend", polygonDragstart: "polygonDragstart", polygonMousedown: "polygonMousedown", polygonMousemove: "polygonMousemove", polygonMouseout: "polygonMouseout", polygonMouseover: "polygonMouseover", polygonMouseup: "polygonMouseup", polygonRightclick: "polygonRightclick", polygonInitialized: "polygonInitialized" }, exportAs: ["mapPolygon"], ngImport: i0 });
|
|
2606
2707
|
}
|
|
2607
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
2708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapPolygon, decorators: [{
|
|
2608
2709
|
type: Directive,
|
|
2609
2710
|
args: [{
|
|
2610
2711
|
selector: 'map-polygon',
|
|
2611
2712
|
exportAs: 'mapPolygon',
|
|
2612
|
-
standalone: true,
|
|
2613
2713
|
}]
|
|
2614
2714
|
}], ctorParameters: () => [], propDecorators: { options: [{
|
|
2615
2715
|
type: Input
|
|
@@ -2648,66 +2748,71 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
2648
2748
|
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline
|
|
2649
2749
|
*/
|
|
2650
2750
|
class MapPolyline {
|
|
2751
|
+
_map = inject(GoogleMap);
|
|
2752
|
+
_ngZone = inject(NgZone);
|
|
2753
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
2754
|
+
_options = new BehaviorSubject({});
|
|
2755
|
+
_path = new BehaviorSubject(undefined);
|
|
2756
|
+
_destroyed = new Subject();
|
|
2757
|
+
/**
|
|
2758
|
+
* The underlying google.maps.Polyline object.
|
|
2759
|
+
*
|
|
2760
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline
|
|
2761
|
+
*/
|
|
2762
|
+
polyline;
|
|
2651
2763
|
set options(options) {
|
|
2652
2764
|
this._options.next(options || {});
|
|
2653
2765
|
}
|
|
2654
2766
|
set path(path) {
|
|
2655
2767
|
this._path.next(path);
|
|
2656
2768
|
}
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
/**
|
|
2705
|
-
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.rightclick
|
|
2706
|
-
*/
|
|
2707
|
-
this.polylineRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
2708
|
-
/** Event emitted when the polyline is initialized. */
|
|
2709
|
-
this.polylineInitialized = new EventEmitter();
|
|
2710
|
-
}
|
|
2769
|
+
/**
|
|
2770
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.click
|
|
2771
|
+
*/
|
|
2772
|
+
polylineClick = this._eventManager.getLazyEmitter('click');
|
|
2773
|
+
/**
|
|
2774
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.dblclick
|
|
2775
|
+
*/
|
|
2776
|
+
polylineDblclick = this._eventManager.getLazyEmitter('dblclick');
|
|
2777
|
+
/**
|
|
2778
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.drag
|
|
2779
|
+
*/
|
|
2780
|
+
polylineDrag = this._eventManager.getLazyEmitter('drag');
|
|
2781
|
+
/**
|
|
2782
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.dragend
|
|
2783
|
+
*/
|
|
2784
|
+
polylineDragend = this._eventManager.getLazyEmitter('dragend');
|
|
2785
|
+
/**
|
|
2786
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.dragstart
|
|
2787
|
+
*/
|
|
2788
|
+
polylineDragstart = this._eventManager.getLazyEmitter('dragstart');
|
|
2789
|
+
/**
|
|
2790
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.mousedown
|
|
2791
|
+
*/
|
|
2792
|
+
polylineMousedown = this._eventManager.getLazyEmitter('mousedown');
|
|
2793
|
+
/**
|
|
2794
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.mousemove
|
|
2795
|
+
*/
|
|
2796
|
+
polylineMousemove = this._eventManager.getLazyEmitter('mousemove');
|
|
2797
|
+
/**
|
|
2798
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.mouseout
|
|
2799
|
+
*/
|
|
2800
|
+
polylineMouseout = this._eventManager.getLazyEmitter('mouseout');
|
|
2801
|
+
/**
|
|
2802
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.mouseover
|
|
2803
|
+
*/
|
|
2804
|
+
polylineMouseover = this._eventManager.getLazyEmitter('mouseover');
|
|
2805
|
+
/**
|
|
2806
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.mouseup
|
|
2807
|
+
*/
|
|
2808
|
+
polylineMouseup = this._eventManager.getLazyEmitter('mouseup');
|
|
2809
|
+
/**
|
|
2810
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.rightclick
|
|
2811
|
+
*/
|
|
2812
|
+
polylineRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
2813
|
+
/** Event emitted when the polyline is initialized. */
|
|
2814
|
+
polylineInitialized = new EventEmitter();
|
|
2815
|
+
constructor() { }
|
|
2711
2816
|
ngOnInit() {
|
|
2712
2817
|
if (this._map._isBrowser) {
|
|
2713
2818
|
this._combineOptions()
|
|
@@ -2806,15 +2911,14 @@ class MapPolyline {
|
|
|
2806
2911
|
}
|
|
2807
2912
|
}
|
|
2808
2913
|
}
|
|
2809
|
-
static
|
|
2810
|
-
static
|
|
2914
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapPolyline, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2915
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapPolyline, isStandalone: true, selector: "map-polyline", inputs: { options: "options", path: "path" }, outputs: { polylineClick: "polylineClick", polylineDblclick: "polylineDblclick", polylineDrag: "polylineDrag", polylineDragend: "polylineDragend", polylineDragstart: "polylineDragstart", polylineMousedown: "polylineMousedown", polylineMousemove: "polylineMousemove", polylineMouseout: "polylineMouseout", polylineMouseover: "polylineMouseover", polylineMouseup: "polylineMouseup", polylineRightclick: "polylineRightclick", polylineInitialized: "polylineInitialized" }, exportAs: ["mapPolyline"], ngImport: i0 });
|
|
2811
2916
|
}
|
|
2812
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
2917
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapPolyline, decorators: [{
|
|
2813
2918
|
type: Directive,
|
|
2814
2919
|
args: [{
|
|
2815
2920
|
selector: 'map-polyline',
|
|
2816
2921
|
exportAs: 'mapPolyline',
|
|
2817
|
-
standalone: true,
|
|
2818
2922
|
}]
|
|
2819
2923
|
}], ctorParameters: () => [], propDecorators: { options: [{
|
|
2820
2924
|
type: Input
|
|
@@ -2853,81 +2957,86 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
2853
2957
|
* See developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle
|
|
2854
2958
|
*/
|
|
2855
2959
|
class MapRectangle {
|
|
2960
|
+
_map = inject(GoogleMap);
|
|
2961
|
+
_ngZone = inject(NgZone);
|
|
2962
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
2963
|
+
_options = new BehaviorSubject({});
|
|
2964
|
+
_bounds = new BehaviorSubject(undefined);
|
|
2965
|
+
_destroyed = new Subject();
|
|
2966
|
+
/**
|
|
2967
|
+
* The underlying google.maps.Rectangle object.
|
|
2968
|
+
*
|
|
2969
|
+
* See developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle
|
|
2970
|
+
*/
|
|
2971
|
+
rectangle;
|
|
2856
2972
|
set options(options) {
|
|
2857
2973
|
this._options.next(options || {});
|
|
2858
2974
|
}
|
|
2859
2975
|
set bounds(bounds) {
|
|
2860
2976
|
this._bounds.next(bounds);
|
|
2861
2977
|
}
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
* See
|
|
2925
|
-
* developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.rightclick
|
|
2926
|
-
*/
|
|
2927
|
-
this.rectangleRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
2928
|
-
/** Event emitted when the rectangle is initialized. */
|
|
2929
|
-
this.rectangleInitialized = new EventEmitter();
|
|
2930
|
-
}
|
|
2978
|
+
/**
|
|
2979
|
+
* See
|
|
2980
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.boundsChanged
|
|
2981
|
+
*/ boundsChanged = this._eventManager.getLazyEmitter('bounds_changed');
|
|
2982
|
+
/**
|
|
2983
|
+
* See
|
|
2984
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.click
|
|
2985
|
+
*/
|
|
2986
|
+
rectangleClick = this._eventManager.getLazyEmitter('click');
|
|
2987
|
+
/**
|
|
2988
|
+
* See
|
|
2989
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.dblclick
|
|
2990
|
+
*/
|
|
2991
|
+
rectangleDblclick = this._eventManager.getLazyEmitter('dblclick');
|
|
2992
|
+
/**
|
|
2993
|
+
* See
|
|
2994
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.drag
|
|
2995
|
+
*/
|
|
2996
|
+
rectangleDrag = this._eventManager.getLazyEmitter('drag');
|
|
2997
|
+
/**
|
|
2998
|
+
* See
|
|
2999
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.dragend
|
|
3000
|
+
*/
|
|
3001
|
+
rectangleDragend = this._eventManager.getLazyEmitter('dragend');
|
|
3002
|
+
/**
|
|
3003
|
+
* See
|
|
3004
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.dragstart
|
|
3005
|
+
*/
|
|
3006
|
+
rectangleDragstart = this._eventManager.getLazyEmitter('dragstart');
|
|
3007
|
+
/**
|
|
3008
|
+
* See
|
|
3009
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.mousedown
|
|
3010
|
+
*/
|
|
3011
|
+
rectangleMousedown = this._eventManager.getLazyEmitter('mousedown');
|
|
3012
|
+
/**
|
|
3013
|
+
* See
|
|
3014
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.mousemove
|
|
3015
|
+
*/
|
|
3016
|
+
rectangleMousemove = this._eventManager.getLazyEmitter('mousemove');
|
|
3017
|
+
/**
|
|
3018
|
+
* See
|
|
3019
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.mouseout
|
|
3020
|
+
*/
|
|
3021
|
+
rectangleMouseout = this._eventManager.getLazyEmitter('mouseout');
|
|
3022
|
+
/**
|
|
3023
|
+
* See
|
|
3024
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.mouseover
|
|
3025
|
+
*/
|
|
3026
|
+
rectangleMouseover = this._eventManager.getLazyEmitter('mouseover');
|
|
3027
|
+
/**
|
|
3028
|
+
* See
|
|
3029
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.mouseup
|
|
3030
|
+
*/
|
|
3031
|
+
rectangleMouseup = this._eventManager.getLazyEmitter('mouseup');
|
|
3032
|
+
/**
|
|
3033
|
+
* See
|
|
3034
|
+
* developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.rightclick
|
|
3035
|
+
*/
|
|
3036
|
+
rectangleRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
3037
|
+
/** Event emitted when the rectangle is initialized. */
|
|
3038
|
+
rectangleInitialized = new EventEmitter();
|
|
3039
|
+
constructor() { }
|
|
2931
3040
|
ngOnInit() {
|
|
2932
3041
|
if (this._map._isBrowser) {
|
|
2933
3042
|
this._combineOptions()
|
|
@@ -3029,15 +3138,14 @@ class MapRectangle {
|
|
|
3029
3138
|
}
|
|
3030
3139
|
}
|
|
3031
3140
|
}
|
|
3032
|
-
static
|
|
3033
|
-
static
|
|
3141
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapRectangle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3142
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapRectangle, isStandalone: true, selector: "map-rectangle", inputs: { options: "options", bounds: "bounds" }, outputs: { boundsChanged: "boundsChanged", rectangleClick: "rectangleClick", rectangleDblclick: "rectangleDblclick", rectangleDrag: "rectangleDrag", rectangleDragend: "rectangleDragend", rectangleDragstart: "rectangleDragstart", rectangleMousedown: "rectangleMousedown", rectangleMousemove: "rectangleMousemove", rectangleMouseout: "rectangleMouseout", rectangleMouseover: "rectangleMouseover", rectangleMouseup: "rectangleMouseup", rectangleRightclick: "rectangleRightclick", rectangleInitialized: "rectangleInitialized" }, exportAs: ["mapRectangle"], ngImport: i0 });
|
|
3034
3143
|
}
|
|
3035
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapRectangle, decorators: [{
|
|
3036
3145
|
type: Directive,
|
|
3037
3146
|
args: [{
|
|
3038
3147
|
selector: 'map-rectangle',
|
|
3039
3148
|
exportAs: 'mapRectangle',
|
|
3040
|
-
standalone: true,
|
|
3041
3149
|
}]
|
|
3042
3150
|
}], ctorParameters: () => [], propDecorators: { options: [{
|
|
3043
3151
|
type: Input
|
|
@@ -3078,20 +3186,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
3078
3186
|
* See developers.google.com/maps/documentation/javascript/reference/map#TrafficLayer
|
|
3079
3187
|
*/
|
|
3080
3188
|
class MapTrafficLayer {
|
|
3189
|
+
_map = inject(GoogleMap);
|
|
3190
|
+
_ngZone = inject(NgZone);
|
|
3191
|
+
_autoRefresh = new BehaviorSubject(true);
|
|
3192
|
+
_destroyed = new Subject();
|
|
3193
|
+
/**
|
|
3194
|
+
* The underlying google.maps.TrafficLayer object.
|
|
3195
|
+
*
|
|
3196
|
+
* See developers.google.com/maps/documentation/javascript/reference/map#TrafficLayer
|
|
3197
|
+
*/
|
|
3198
|
+
trafficLayer;
|
|
3081
3199
|
/**
|
|
3082
3200
|
* Whether the traffic layer refreshes with updated information automatically.
|
|
3083
3201
|
*/
|
|
3084
3202
|
set autoRefresh(autoRefresh) {
|
|
3085
3203
|
this._autoRefresh.next(autoRefresh);
|
|
3086
3204
|
}
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
this._autoRefresh = new BehaviorSubject(true);
|
|
3091
|
-
this._destroyed = new Subject();
|
|
3092
|
-
/** Event emitted when the traffic layer is initialized. */
|
|
3093
|
-
this.trafficLayerInitialized = new EventEmitter();
|
|
3094
|
-
}
|
|
3205
|
+
/** Event emitted when the traffic layer is initialized. */
|
|
3206
|
+
trafficLayerInitialized = new EventEmitter();
|
|
3207
|
+
constructor() { }
|
|
3095
3208
|
ngOnInit() {
|
|
3096
3209
|
if (this._map._isBrowser) {
|
|
3097
3210
|
this._combineOptions()
|
|
@@ -3144,15 +3257,14 @@ class MapTrafficLayer {
|
|
|
3144
3257
|
'Please wait for the Traffic Layer to load before trying to interact with it.');
|
|
3145
3258
|
}
|
|
3146
3259
|
}
|
|
3147
|
-
static
|
|
3148
|
-
static
|
|
3260
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapTrafficLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3261
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapTrafficLayer, isStandalone: true, selector: "map-traffic-layer", inputs: { autoRefresh: "autoRefresh" }, outputs: { trafficLayerInitialized: "trafficLayerInitialized" }, exportAs: ["mapTrafficLayer"], ngImport: i0 });
|
|
3149
3262
|
}
|
|
3150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapTrafficLayer, decorators: [{
|
|
3151
3264
|
type: Directive,
|
|
3152
3265
|
args: [{
|
|
3153
3266
|
selector: 'map-traffic-layer',
|
|
3154
3267
|
exportAs: 'mapTrafficLayer',
|
|
3155
|
-
standalone: true,
|
|
3156
3268
|
}]
|
|
3157
3269
|
}], ctorParameters: () => [], propDecorators: { autoRefresh: [{
|
|
3158
3270
|
type: Input
|
|
@@ -3167,12 +3279,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
3167
3279
|
* See developers.google.com/maps/documentation/javascript/reference/map#TransitLayer
|
|
3168
3280
|
*/
|
|
3169
3281
|
class MapTransitLayer {
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3282
|
+
_map = inject(GoogleMap);
|
|
3283
|
+
_zone = inject(NgZone);
|
|
3284
|
+
/**
|
|
3285
|
+
* The underlying google.maps.TransitLayer object.
|
|
3286
|
+
*
|
|
3287
|
+
* See developers.google.com/maps/documentation/javascript/reference/map#TransitLayer
|
|
3288
|
+
*/
|
|
3289
|
+
transitLayer;
|
|
3290
|
+
/** Event emitted when the transit layer is initialized. */
|
|
3291
|
+
transitLayerInitialized = new EventEmitter();
|
|
3176
3292
|
ngOnInit() {
|
|
3177
3293
|
if (this._map._isBrowser) {
|
|
3178
3294
|
if (google.maps.TransitLayer && this._map.googleMap) {
|
|
@@ -3204,15 +3320,14 @@ class MapTransitLayer {
|
|
|
3204
3320
|
'Please wait for the Transit Layer to load before trying to interact with it.');
|
|
3205
3321
|
}
|
|
3206
3322
|
}
|
|
3207
|
-
static
|
|
3208
|
-
static
|
|
3323
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapTransitLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3324
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapTransitLayer, isStandalone: true, selector: "map-transit-layer", outputs: { transitLayerInitialized: "transitLayerInitialized" }, exportAs: ["mapTransitLayer"], ngImport: i0 });
|
|
3209
3325
|
}
|
|
3210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3326
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapTransitLayer, decorators: [{
|
|
3211
3327
|
type: Directive,
|
|
3212
3328
|
args: [{
|
|
3213
3329
|
selector: 'map-transit-layer',
|
|
3214
3330
|
exportAs: 'mapTransitLayer',
|
|
3215
|
-
standalone: true,
|
|
3216
3331
|
}]
|
|
3217
3332
|
}], propDecorators: { transitLayerInitialized: [{
|
|
3218
3333
|
type: Output
|
|
@@ -3225,6 +3340,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
3225
3340
|
* See: https://developers.google.com/maps/documentation/javascript/reference/visualization
|
|
3226
3341
|
*/
|
|
3227
3342
|
class MapHeatmapLayer {
|
|
3343
|
+
_googleMap = inject(GoogleMap);
|
|
3344
|
+
_ngZone = inject(NgZone);
|
|
3228
3345
|
/**
|
|
3229
3346
|
* Data shown on the heatmap.
|
|
3230
3347
|
* See: https://developers.google.com/maps/documentation/javascript/reference/visualization
|
|
@@ -3232,6 +3349,7 @@ class MapHeatmapLayer {
|
|
|
3232
3349
|
set data(data) {
|
|
3233
3350
|
this._data = data;
|
|
3234
3351
|
}
|
|
3352
|
+
_data;
|
|
3235
3353
|
/**
|
|
3236
3354
|
* Options used to configure the heatmap. See:
|
|
3237
3355
|
* developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayerOptions
|
|
@@ -3239,12 +3357,16 @@ class MapHeatmapLayer {
|
|
|
3239
3357
|
set options(options) {
|
|
3240
3358
|
this._options = options;
|
|
3241
3359
|
}
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3360
|
+
_options;
|
|
3361
|
+
/**
|
|
3362
|
+
* The underlying google.maps.visualization.HeatmapLayer object.
|
|
3363
|
+
*
|
|
3364
|
+
* See: https://developers.google.com/maps/documentation/javascript/reference/visualization
|
|
3365
|
+
*/
|
|
3366
|
+
heatmap;
|
|
3367
|
+
/** Event emitted when the heatmap is initialized. */
|
|
3368
|
+
heatmapInitialized = new EventEmitter();
|
|
3369
|
+
constructor() { }
|
|
3248
3370
|
ngOnInit() {
|
|
3249
3371
|
if (this._googleMap._isBrowser) {
|
|
3250
3372
|
if (!window.google?.maps?.visualization &&
|
|
@@ -3335,15 +3457,14 @@ class MapHeatmapLayer {
|
|
|
3335
3457
|
}
|
|
3336
3458
|
}
|
|
3337
3459
|
}
|
|
3338
|
-
static
|
|
3339
|
-
static
|
|
3460
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapHeatmapLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3461
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapHeatmapLayer, isStandalone: true, selector: "map-heatmap-layer", inputs: { data: "data", options: "options" }, outputs: { heatmapInitialized: "heatmapInitialized" }, exportAs: ["mapHeatmapLayer"], usesOnChanges: true, ngImport: i0 });
|
|
3340
3462
|
}
|
|
3341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3463
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapHeatmapLayer, decorators: [{
|
|
3342
3464
|
type: Directive,
|
|
3343
3465
|
args: [{
|
|
3344
3466
|
selector: 'map-heatmap-layer',
|
|
3345
3467
|
exportAs: 'mapHeatmapLayer',
|
|
3346
|
-
standalone: true,
|
|
3347
3468
|
}]
|
|
3348
3469
|
}], ctorParameters: () => [], propDecorators: { data: [{
|
|
3349
3470
|
type: Input
|
|
@@ -3371,6 +3492,9 @@ const DEFAULT_MARKER_OPTIONS = {
|
|
|
3371
3492
|
* See developers.google.com/maps/documentation/javascript/reference/marker
|
|
3372
3493
|
*/
|
|
3373
3494
|
class MapAdvancedMarker {
|
|
3495
|
+
_googleMap = inject(GoogleMap);
|
|
3496
|
+
_ngZone = inject(NgZone);
|
|
3497
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
3374
3498
|
/**
|
|
3375
3499
|
* Rollover text. If provided, an accessibility text (e.g. for use with screen readers) will be added to the AdvancedMarkerElement with the provided value.
|
|
3376
3500
|
* See: https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.title
|
|
@@ -3378,6 +3502,7 @@ class MapAdvancedMarker {
|
|
|
3378
3502
|
set title(title) {
|
|
3379
3503
|
this._title = title;
|
|
3380
3504
|
}
|
|
3505
|
+
_title;
|
|
3381
3506
|
/**
|
|
3382
3507
|
* 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.
|
|
3383
3508
|
* Note: AdvancedMarkerElement with altitude is only supported on vector maps.
|
|
@@ -3386,6 +3511,7 @@ class MapAdvancedMarker {
|
|
|
3386
3511
|
set position(position) {
|
|
3387
3512
|
this._position = position;
|
|
3388
3513
|
}
|
|
3514
|
+
_position;
|
|
3389
3515
|
/**
|
|
3390
3516
|
* The DOM Element backing the visual of an AdvancedMarkerElement.
|
|
3391
3517
|
* 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.
|
|
@@ -3394,6 +3520,7 @@ class MapAdvancedMarker {
|
|
|
3394
3520
|
set content(content) {
|
|
3395
3521
|
this._content = content;
|
|
3396
3522
|
}
|
|
3523
|
+
_content;
|
|
3397
3524
|
/**
|
|
3398
3525
|
* If true, the AdvancedMarkerElement can be dragged.
|
|
3399
3526
|
* Note: AdvancedMarkerElement with altitude is not draggable.
|
|
@@ -3402,6 +3529,7 @@ class MapAdvancedMarker {
|
|
|
3402
3529
|
set gmpDraggable(draggable) {
|
|
3403
3530
|
this._draggable = draggable;
|
|
3404
3531
|
}
|
|
3532
|
+
_draggable;
|
|
3405
3533
|
/**
|
|
3406
3534
|
* Options for constructing an AdvancedMarkerElement.
|
|
3407
3535
|
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions
|
|
@@ -3409,6 +3537,7 @@ class MapAdvancedMarker {
|
|
|
3409
3537
|
set options(options) {
|
|
3410
3538
|
this._options = options;
|
|
3411
3539
|
}
|
|
3540
|
+
_options;
|
|
3412
3541
|
/**
|
|
3413
3542
|
* AdvancedMarkerElements on the map are prioritized by zIndex, with higher values indicating higher display.
|
|
3414
3543
|
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.zIndex
|
|
@@ -3416,53 +3545,56 @@ class MapAdvancedMarker {
|
|
|
3416
3545
|
set zIndex(zIndex) {
|
|
3417
3546
|
this._zIndex = zIndex;
|
|
3418
3547
|
}
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3548
|
+
_zIndex;
|
|
3549
|
+
/**
|
|
3550
|
+
* This event is fired when the AdvancedMarkerElement element is clicked.
|
|
3551
|
+
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement.click
|
|
3552
|
+
*/
|
|
3553
|
+
mapClick = this._eventManager.getLazyEmitter('click');
|
|
3554
|
+
/**
|
|
3555
|
+
* This event is fired when the AdvancedMarkerElement is double-clicked.
|
|
3556
|
+
*/
|
|
3557
|
+
mapDblclick = this._eventManager.getLazyEmitter('dblclick');
|
|
3558
|
+
/**
|
|
3559
|
+
* This event is fired when the mouse moves out of the AdvancedMarkerElement.
|
|
3560
|
+
*/
|
|
3561
|
+
mapMouseout = this._eventManager.getLazyEmitter('mouseout');
|
|
3562
|
+
/**
|
|
3563
|
+
* This event is fired when the mouse moves over the AdvancedMarkerElement.
|
|
3564
|
+
*/
|
|
3565
|
+
mapMouseover = this._eventManager.getLazyEmitter('mouseover');
|
|
3566
|
+
/**
|
|
3567
|
+
* This event is fired when the mouse button is released over the AdvancedMarkerElement.
|
|
3568
|
+
*/
|
|
3569
|
+
mapMouseup = this._eventManager.getLazyEmitter('mouseup');
|
|
3570
|
+
/**
|
|
3571
|
+
* This event is fired when the AdvancedMarkerElement is right-clicked.
|
|
3572
|
+
*/
|
|
3573
|
+
mapRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
3574
|
+
/**
|
|
3575
|
+
* This event is repeatedly fired while the user drags the AdvancedMarkerElement.
|
|
3576
|
+
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement.drag
|
|
3577
|
+
*/
|
|
3578
|
+
mapDrag = this._eventManager.getLazyEmitter('drag');
|
|
3579
|
+
/**
|
|
3580
|
+
* This event is fired when the user stops dragging the AdvancedMarkerElement.
|
|
3581
|
+
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement.dragend
|
|
3582
|
+
*/
|
|
3583
|
+
mapDragend = this._eventManager.getLazyEmitter('dragend');
|
|
3584
|
+
/**
|
|
3585
|
+
* This event is fired when the user starts dragging the AdvancedMarkerElement.
|
|
3586
|
+
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement.dragstart
|
|
3587
|
+
*/
|
|
3588
|
+
mapDragstart = this._eventManager.getLazyEmitter('dragstart');
|
|
3589
|
+
/** Event emitted when the marker is initialized. */
|
|
3590
|
+
markerInitialized = new EventEmitter();
|
|
3591
|
+
/**
|
|
3592
|
+
* The underlying google.maps.marker.AdvancedMarkerElement object.
|
|
3593
|
+
*
|
|
3594
|
+
* See developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement
|
|
3595
|
+
*/
|
|
3596
|
+
advancedMarker;
|
|
3597
|
+
constructor() { }
|
|
3466
3598
|
ngOnInit() {
|
|
3467
3599
|
if (!this._googleMap._isBrowser) {
|
|
3468
3600
|
return;
|
|
@@ -3521,6 +3653,12 @@ class MapAdvancedMarker {
|
|
|
3521
3653
|
this._assertInitialized();
|
|
3522
3654
|
return this.advancedMarker;
|
|
3523
3655
|
}
|
|
3656
|
+
/** Returns a promise that resolves when the marker has been initialized. */
|
|
3657
|
+
_resolveMarker() {
|
|
3658
|
+
return this.advancedMarker
|
|
3659
|
+
? Promise.resolve(this.advancedMarker)
|
|
3660
|
+
: this.markerInitialized.pipe(take(1)).toPromise();
|
|
3661
|
+
}
|
|
3524
3662
|
/** Creates a combined options object using the passed-in options and the individual inputs. */
|
|
3525
3663
|
_combineOptions() {
|
|
3526
3664
|
const options = this._options || DEFAULT_MARKER_OPTIONS;
|
|
@@ -3543,15 +3681,25 @@ class MapAdvancedMarker {
|
|
|
3543
3681
|
}
|
|
3544
3682
|
}
|
|
3545
3683
|
}
|
|
3546
|
-
static
|
|
3547
|
-
static
|
|
3684
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapAdvancedMarker, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3685
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapAdvancedMarker, isStandalone: true, selector: "map-advanced-marker", inputs: { title: "title", position: "position", content: "content", gmpDraggable: "gmpDraggable", options: "options", zIndex: "zIndex" }, outputs: { mapClick: "mapClick", mapDblclick: "mapDblclick", mapMouseout: "mapMouseout", mapMouseover: "mapMouseover", mapMouseup: "mapMouseup", mapRightclick: "mapRightclick", mapDrag: "mapDrag", mapDragend: "mapDragend", mapDragstart: "mapDragstart", markerInitialized: "markerInitialized" }, providers: [
|
|
3686
|
+
{
|
|
3687
|
+
provide: MAP_MARKER,
|
|
3688
|
+
useExisting: MapAdvancedMarker,
|
|
3689
|
+
},
|
|
3690
|
+
], exportAs: ["mapAdvancedMarker"], usesOnChanges: true, ngImport: i0 });
|
|
3548
3691
|
}
|
|
3549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapAdvancedMarker, decorators: [{
|
|
3550
3693
|
type: Directive,
|
|
3551
3694
|
args: [{
|
|
3552
3695
|
selector: 'map-advanced-marker',
|
|
3553
3696
|
exportAs: 'mapAdvancedMarker',
|
|
3554
|
-
|
|
3697
|
+
providers: [
|
|
3698
|
+
{
|
|
3699
|
+
provide: MAP_MARKER,
|
|
3700
|
+
useExisting: MapAdvancedMarker,
|
|
3701
|
+
},
|
|
3702
|
+
],
|
|
3555
3703
|
}]
|
|
3556
3704
|
}], ctorParameters: () => [], propDecorators: { title: [{
|
|
3557
3705
|
type: Input
|
|
@@ -3587,6 +3735,175 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
3587
3735
|
type: Output
|
|
3588
3736
|
}] } });
|
|
3589
3737
|
|
|
3738
|
+
// Workaround for: https://github.com/bazelbuild/rules_nodejs/issues/1265
|
|
3739
|
+
/**
|
|
3740
|
+
* Angular component for implementing a Google Maps Marker Clusterer.
|
|
3741
|
+
*
|
|
3742
|
+
* See https://developers.google.com/maps/documentation/javascript/marker-clustering
|
|
3743
|
+
*/
|
|
3744
|
+
class MapMarkerClusterer {
|
|
3745
|
+
_googleMap = inject(GoogleMap);
|
|
3746
|
+
_ngZone = inject(NgZone);
|
|
3747
|
+
_currentMarkers = new Set();
|
|
3748
|
+
_closestMapEventManager = new MapEventManager(this._ngZone);
|
|
3749
|
+
_markersSubscription = Subscription.EMPTY;
|
|
3750
|
+
/** Whether the clusterer is allowed to be initialized. */
|
|
3751
|
+
_canInitialize = this._googleMap._isBrowser;
|
|
3752
|
+
/**
|
|
3753
|
+
* Used to customize how the marker cluster is rendered.
|
|
3754
|
+
* See https://googlemaps.github.io/js-markerclusterer/interfaces/Renderer.html.
|
|
3755
|
+
*/
|
|
3756
|
+
renderer;
|
|
3757
|
+
/**
|
|
3758
|
+
* Algorithm used to cluster the markers.
|
|
3759
|
+
* See https://googlemaps.github.io/js-markerclusterer/interfaces/Algorithm.html.
|
|
3760
|
+
*/
|
|
3761
|
+
algorithm;
|
|
3762
|
+
/** Emits when clustering has started. */
|
|
3763
|
+
clusteringbegin = this._closestMapEventManager.getLazyEmitter('clusteringbegin');
|
|
3764
|
+
/** Emits when clustering is done. */
|
|
3765
|
+
clusteringend = this._closestMapEventManager.getLazyEmitter('clusteringend');
|
|
3766
|
+
/** Emits when a cluster has been clicked. */
|
|
3767
|
+
clusterClick = new EventEmitter();
|
|
3768
|
+
/** Event emitted when the marker clusterer is initialized. */
|
|
3769
|
+
markerClustererInitialized = new EventEmitter();
|
|
3770
|
+
_markers;
|
|
3771
|
+
/** Underlying MarkerClusterer object used to interact with Google Maps. */
|
|
3772
|
+
markerClusterer;
|
|
3773
|
+
async ngOnInit() {
|
|
3774
|
+
if (this._canInitialize) {
|
|
3775
|
+
await this._createCluster();
|
|
3776
|
+
// The `clusteringbegin` and `clusteringend` events are
|
|
3777
|
+
// emitted on the map so that's why set it as the target.
|
|
3778
|
+
this._closestMapEventManager.setTarget(this._googleMap.googleMap);
|
|
3779
|
+
}
|
|
3780
|
+
}
|
|
3781
|
+
async ngOnChanges(changes) {
|
|
3782
|
+
const change = changes['renderer'] || changes['algorithm'];
|
|
3783
|
+
// Since the options are set in the constructor, we have to recreate the cluster if they change.
|
|
3784
|
+
if (this.markerClusterer && change && !change.isFirstChange()) {
|
|
3785
|
+
await this._createCluster();
|
|
3786
|
+
}
|
|
3787
|
+
}
|
|
3788
|
+
ngOnDestroy() {
|
|
3789
|
+
this._markersSubscription.unsubscribe();
|
|
3790
|
+
this._closestMapEventManager.destroy();
|
|
3791
|
+
this._destroyCluster();
|
|
3792
|
+
}
|
|
3793
|
+
async _createCluster() {
|
|
3794
|
+
if (!markerClusterer?.MarkerClusterer && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
3795
|
+
throw Error('MarkerClusterer class not found, cannot construct a marker cluster. ' +
|
|
3796
|
+
'Please install the MarkerClusterer library: ' +
|
|
3797
|
+
'https://github.com/googlemaps/js-markerclusterer');
|
|
3798
|
+
}
|
|
3799
|
+
const map = await this._googleMap._resolveMap();
|
|
3800
|
+
this._destroyCluster();
|
|
3801
|
+
// Create the object outside the zone so its events don't trigger change detection.
|
|
3802
|
+
// We'll bring it back in inside the `MapEventManager` only for the events that the
|
|
3803
|
+
// user has subscribed to.
|
|
3804
|
+
this._ngZone.runOutsideAngular(() => {
|
|
3805
|
+
this.markerClusterer = new markerClusterer.MarkerClusterer({
|
|
3806
|
+
map,
|
|
3807
|
+
renderer: this.renderer,
|
|
3808
|
+
algorithm: this.algorithm,
|
|
3809
|
+
onClusterClick: (event, cluster, map) => {
|
|
3810
|
+
if (this.clusterClick.observers.length) {
|
|
3811
|
+
this._ngZone.run(() => this.clusterClick.emit(cluster));
|
|
3812
|
+
}
|
|
3813
|
+
else {
|
|
3814
|
+
markerClusterer.defaultOnClusterClickHandler(event, cluster, map);
|
|
3815
|
+
}
|
|
3816
|
+
},
|
|
3817
|
+
});
|
|
3818
|
+
this.markerClustererInitialized.emit(this.markerClusterer);
|
|
3819
|
+
});
|
|
3820
|
+
await this._watchForMarkerChanges();
|
|
3821
|
+
}
|
|
3822
|
+
async _watchForMarkerChanges() {
|
|
3823
|
+
this._assertInitialized();
|
|
3824
|
+
const initialMarkers = [];
|
|
3825
|
+
const markers = await this._getInternalMarkers(this._markers.toArray());
|
|
3826
|
+
for (const marker of markers) {
|
|
3827
|
+
this._currentMarkers.add(marker);
|
|
3828
|
+
initialMarkers.push(marker);
|
|
3829
|
+
}
|
|
3830
|
+
this.markerClusterer.addMarkers(initialMarkers);
|
|
3831
|
+
this._markersSubscription.unsubscribe();
|
|
3832
|
+
this._markersSubscription = this._markers.changes.subscribe(async (markerComponents) => {
|
|
3833
|
+
this._assertInitialized();
|
|
3834
|
+
const newMarkers = new Set(await this._getInternalMarkers(markerComponents));
|
|
3835
|
+
const markersToAdd = [];
|
|
3836
|
+
const markersToRemove = [];
|
|
3837
|
+
for (const marker of Array.from(newMarkers)) {
|
|
3838
|
+
if (!this._currentMarkers.has(marker)) {
|
|
3839
|
+
this._currentMarkers.add(marker);
|
|
3840
|
+
markersToAdd.push(marker);
|
|
3841
|
+
}
|
|
3842
|
+
}
|
|
3843
|
+
for (const marker of Array.from(this._currentMarkers)) {
|
|
3844
|
+
if (!newMarkers.has(marker)) {
|
|
3845
|
+
markersToRemove.push(marker);
|
|
3846
|
+
}
|
|
3847
|
+
}
|
|
3848
|
+
this.markerClusterer.addMarkers(markersToAdd, true);
|
|
3849
|
+
this.markerClusterer.removeMarkers(markersToRemove, true);
|
|
3850
|
+
this.markerClusterer.render();
|
|
3851
|
+
for (const marker of markersToRemove) {
|
|
3852
|
+
this._currentMarkers.delete(marker);
|
|
3853
|
+
}
|
|
3854
|
+
});
|
|
3855
|
+
}
|
|
3856
|
+
_destroyCluster() {
|
|
3857
|
+
// TODO(crisbeto): the naming here seems odd, but the `MarkerCluster` method isn't
|
|
3858
|
+
// exposed. All this method seems to do at the time of writing is to call into `reset`.
|
|
3859
|
+
// See: https://github.com/googlemaps/js-markerclusterer/blob/main/src/markerclusterer.ts#L205
|
|
3860
|
+
this.markerClusterer?.onRemove();
|
|
3861
|
+
this.markerClusterer = undefined;
|
|
3862
|
+
}
|
|
3863
|
+
_getInternalMarkers(markers) {
|
|
3864
|
+
return Promise.all(markers.map(marker => marker._resolveMarker()));
|
|
3865
|
+
}
|
|
3866
|
+
_assertInitialized() {
|
|
3867
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
3868
|
+
if (!this._googleMap.googleMap) {
|
|
3869
|
+
throw Error('Cannot access Google Map information before the API has been initialized. ' +
|
|
3870
|
+
'Please wait for the API to load before trying to interact with it.');
|
|
3871
|
+
}
|
|
3872
|
+
if (!this.markerClusterer) {
|
|
3873
|
+
throw Error('Cannot interact with a MarkerClusterer before it has been initialized. ' +
|
|
3874
|
+
'Please wait for the MarkerClusterer to load before trying to interact with it.');
|
|
3875
|
+
}
|
|
3876
|
+
}
|
|
3877
|
+
}
|
|
3878
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapMarkerClusterer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3879
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MapMarkerClusterer, isStandalone: true, selector: "map-marker-clusterer", inputs: { renderer: "renderer", algorithm: "algorithm" }, outputs: { clusteringbegin: "clusteringbegin", clusteringend: "clusteringend", clusterClick: "clusterClick", markerClustererInitialized: "markerClustererInitialized" }, queries: [{ propertyName: "_markers", predicate: MAP_MARKER, descendants: true }], exportAs: ["mapMarkerClusterer"], usesOnChanges: true, ngImport: i0, template: '<ng-content/>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3880
|
+
}
|
|
3881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapMarkerClusterer, decorators: [{
|
|
3882
|
+
type: Component,
|
|
3883
|
+
args: [{
|
|
3884
|
+
selector: 'map-marker-clusterer',
|
|
3885
|
+
exportAs: 'mapMarkerClusterer',
|
|
3886
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3887
|
+
template: '<ng-content/>',
|
|
3888
|
+
encapsulation: ViewEncapsulation.None,
|
|
3889
|
+
}]
|
|
3890
|
+
}], propDecorators: { renderer: [{
|
|
3891
|
+
type: Input
|
|
3892
|
+
}], algorithm: [{
|
|
3893
|
+
type: Input
|
|
3894
|
+
}], clusteringbegin: [{
|
|
3895
|
+
type: Output
|
|
3896
|
+
}], clusteringend: [{
|
|
3897
|
+
type: Output
|
|
3898
|
+
}], clusterClick: [{
|
|
3899
|
+
type: Output
|
|
3900
|
+
}], markerClustererInitialized: [{
|
|
3901
|
+
type: Output
|
|
3902
|
+
}], _markers: [{
|
|
3903
|
+
type: ContentChildren,
|
|
3904
|
+
args: [MAP_MARKER, { descendants: true }]
|
|
3905
|
+
}] } });
|
|
3906
|
+
|
|
3590
3907
|
const COMPONENTS = [
|
|
3591
3908
|
GoogleMap,
|
|
3592
3909
|
MapBaseLayer,
|
|
@@ -3599,16 +3916,17 @@ const COMPONENTS = [
|
|
|
3599
3916
|
MapKmlLayer,
|
|
3600
3917
|
MapMarker,
|
|
3601
3918
|
MapAdvancedMarker,
|
|
3602
|
-
|
|
3919
|
+
DeprecatedMapMarkerClusterer,
|
|
3603
3920
|
MapPolygon,
|
|
3604
3921
|
MapPolyline,
|
|
3605
3922
|
MapRectangle,
|
|
3606
3923
|
MapTrafficLayer,
|
|
3607
3924
|
MapTransitLayer,
|
|
3925
|
+
MapMarkerClusterer,
|
|
3608
3926
|
];
|
|
3609
3927
|
class GoogleMapsModule {
|
|
3610
|
-
static
|
|
3611
|
-
static
|
|
3928
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: GoogleMapsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3929
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.10", ngImport: i0, type: GoogleMapsModule, imports: [GoogleMap,
|
|
3612
3930
|
MapBaseLayer,
|
|
3613
3931
|
MapBicyclingLayer,
|
|
3614
3932
|
MapCircle,
|
|
@@ -3619,12 +3937,13 @@ class GoogleMapsModule {
|
|
|
3619
3937
|
MapKmlLayer,
|
|
3620
3938
|
MapMarker,
|
|
3621
3939
|
MapAdvancedMarker,
|
|
3622
|
-
|
|
3940
|
+
DeprecatedMapMarkerClusterer,
|
|
3623
3941
|
MapPolygon,
|
|
3624
3942
|
MapPolyline,
|
|
3625
3943
|
MapRectangle,
|
|
3626
3944
|
MapTrafficLayer,
|
|
3627
|
-
MapTransitLayer
|
|
3945
|
+
MapTransitLayer,
|
|
3946
|
+
MapMarkerClusterer], exports: [GoogleMap,
|
|
3628
3947
|
MapBaseLayer,
|
|
3629
3948
|
MapBicyclingLayer,
|
|
3630
3949
|
MapCircle,
|
|
@@ -3635,15 +3954,16 @@ class GoogleMapsModule {
|
|
|
3635
3954
|
MapKmlLayer,
|
|
3636
3955
|
MapMarker,
|
|
3637
3956
|
MapAdvancedMarker,
|
|
3638
|
-
|
|
3957
|
+
DeprecatedMapMarkerClusterer,
|
|
3639
3958
|
MapPolygon,
|
|
3640
3959
|
MapPolyline,
|
|
3641
3960
|
MapRectangle,
|
|
3642
3961
|
MapTrafficLayer,
|
|
3643
|
-
MapTransitLayer
|
|
3644
|
-
|
|
3962
|
+
MapTransitLayer,
|
|
3963
|
+
MapMarkerClusterer] });
|
|
3964
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: GoogleMapsModule });
|
|
3645
3965
|
}
|
|
3646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: GoogleMapsModule, decorators: [{
|
|
3647
3967
|
type: NgModule,
|
|
3648
3968
|
args: [{
|
|
3649
3969
|
imports: COMPONENTS,
|
|
@@ -3659,9 +3979,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
3659
3979
|
* See developers.google.com/maps/documentation/javascript/reference/directions#DirectionsService
|
|
3660
3980
|
*/
|
|
3661
3981
|
class MapDirectionsService {
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
}
|
|
3982
|
+
_ngZone = inject(NgZone);
|
|
3983
|
+
_directionsService;
|
|
3984
|
+
constructor() { }
|
|
3665
3985
|
/**
|
|
3666
3986
|
* See
|
|
3667
3987
|
* developers.google.com/maps/documentation/javascript/reference/directions
|
|
@@ -3693,10 +4013,10 @@ class MapDirectionsService {
|
|
|
3693
4013
|
}
|
|
3694
4014
|
return Promise.resolve(this._directionsService);
|
|
3695
4015
|
}
|
|
3696
|
-
static
|
|
3697
|
-
static
|
|
4016
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapDirectionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4017
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapDirectionsService, providedIn: 'root' });
|
|
3698
4018
|
}
|
|
3699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
4019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapDirectionsService, decorators: [{
|
|
3700
4020
|
type: Injectable,
|
|
3701
4021
|
args: [{ providedIn: 'root' }]
|
|
3702
4022
|
}], ctorParameters: () => [] });
|
|
@@ -3707,9 +4027,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
3707
4027
|
* See developers.google.com/maps/documentation/javascript/reference/geocoder#Geocoder
|
|
3708
4028
|
*/
|
|
3709
4029
|
class MapGeocoder {
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
}
|
|
4030
|
+
_ngZone = inject(NgZone);
|
|
4031
|
+
_geocoder;
|
|
4032
|
+
constructor() { }
|
|
3713
4033
|
/**
|
|
3714
4034
|
* See developers.google.com/maps/documentation/javascript/reference/geocoder#Geocoder.geocode
|
|
3715
4035
|
*/
|
|
@@ -3739,10 +4059,10 @@ class MapGeocoder {
|
|
|
3739
4059
|
}
|
|
3740
4060
|
return Promise.resolve(this._geocoder);
|
|
3741
4061
|
}
|
|
3742
|
-
static
|
|
3743
|
-
static
|
|
4062
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapGeocoder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4063
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapGeocoder, providedIn: 'root' });
|
|
3744
4064
|
}
|
|
3745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
4065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MapGeocoder, decorators: [{
|
|
3746
4066
|
type: Injectable,
|
|
3747
4067
|
args: [{ providedIn: 'root' }]
|
|
3748
4068
|
}], ctorParameters: () => [] });
|
|
@@ -3751,5 +4071,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8",
|
|
|
3751
4071
|
* Generated bundle index. Do not edit.
|
|
3752
4072
|
*/
|
|
3753
4073
|
|
|
3754
|
-
export { GoogleMap, GoogleMapsModule, MapAdvancedMarker, MapBaseLayer, MapBicyclingLayer, MapCircle, MapDirectionsRenderer, MapDirectionsService, MapEventManager, MapGeocoder, MapGroundOverlay, MapHeatmapLayer, MapInfoWindow, MapKmlLayer, MapMarker, MapMarkerClusterer, MapPolygon, MapPolyline, MapRectangle, MapTrafficLayer, MapTransitLayer };
|
|
4074
|
+
export { DeprecatedMapMarkerClusterer, GoogleMap, GoogleMapsModule, MapAdvancedMarker, MapBaseLayer, MapBicyclingLayer, MapCircle, MapDirectionsRenderer, MapDirectionsService, MapEventManager, MapGeocoder, MapGroundOverlay, MapHeatmapLayer, MapInfoWindow, MapKmlLayer, MapMarker, MapMarkerClusterer, MapPolygon, MapPolyline, MapRectangle, MapTrafficLayer, MapTransitLayer };
|
|
3755
4075
|
//# sourceMappingURL=google-maps.mjs.map
|