@angular/google-maps 19.0.0-next.9 → 19.0.0-rc.1
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
|
@@ -6,6 +6,11 @@ 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,10 +471,10 @@ 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-rc.0", ngImport: i0, type: GoogleMap, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
475
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0-rc.0", 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-
|
|
477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: GoogleMap, decorators: [{
|
|
455
478
|
type: Component,
|
|
456
479
|
args: [{
|
|
457
480
|
selector: 'google-map',
|
|
@@ -526,10 +549,9 @@ function coerceCssPixelValue(value) {
|
|
|
526
549
|
|
|
527
550
|
// Workaround for: https://github.com/bazelbuild/rules_nodejs/issues/1265
|
|
528
551
|
class MapBaseLayer {
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
552
|
+
_map = inject(GoogleMap);
|
|
553
|
+
_ngZone = inject(NgZone);
|
|
554
|
+
constructor() { }
|
|
533
555
|
ngOnInit() {
|
|
534
556
|
if (this._map._isBrowser) {
|
|
535
557
|
this._ngZone.runOutsideAngular(() => {
|
|
@@ -551,10 +573,10 @@ class MapBaseLayer {
|
|
|
551
573
|
_initializeObject() { }
|
|
552
574
|
_setMap() { }
|
|
553
575
|
_unsetMap() { }
|
|
554
|
-
static
|
|
555
|
-
static
|
|
576
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapBaseLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
577
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", type: MapBaseLayer, isStandalone: true, selector: "map-base-layer", exportAs: ["mapBaseLayer"], ngImport: i0 });
|
|
556
578
|
}
|
|
557
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapBaseLayer, decorators: [{
|
|
558
580
|
type: Directive,
|
|
559
581
|
args: [{
|
|
560
582
|
selector: 'map-base-layer',
|
|
@@ -569,12 +591,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
569
591
|
* See developers.google.com/maps/documentation/javascript/reference/map#BicyclingLayer
|
|
570
592
|
*/
|
|
571
593
|
class MapBicyclingLayer {
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
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();
|
|
578
604
|
ngOnInit() {
|
|
579
605
|
if (this._map._isBrowser) {
|
|
580
606
|
if (google.maps.BicyclingLayer && this._map.googleMap) {
|
|
@@ -606,10 +632,10 @@ class MapBicyclingLayer {
|
|
|
606
632
|
'Please wait for the Transit Layer to load before trying to interact with it.');
|
|
607
633
|
}
|
|
608
634
|
}
|
|
609
|
-
static
|
|
610
|
-
static
|
|
635
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapBicyclingLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
636
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", type: MapBicyclingLayer, isStandalone: true, selector: "map-bicycling-layer", outputs: { bicyclingLayerInitialized: "bicyclingLayerInitialized" }, exportAs: ["mapBicyclingLayer"], ngImport: i0 });
|
|
611
637
|
}
|
|
612
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapBicyclingLayer, decorators: [{
|
|
613
639
|
type: Directive,
|
|
614
640
|
args: [{
|
|
615
641
|
selector: 'map-bicycling-layer',
|
|
@@ -625,6 +651,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
625
651
|
* @see developers.google.com/maps/documentation/javascript/reference/polygon#Circle
|
|
626
652
|
*/
|
|
627
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
|
|
628
667
|
set options(options) {
|
|
629
668
|
this._options.next(options || {});
|
|
630
669
|
}
|
|
@@ -634,82 +673,74 @@ class MapCircle {
|
|
|
634
673
|
set radius(radius) {
|
|
635
674
|
this._radius.next(radius);
|
|
636
675
|
}
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* @see
|
|
707
|
-
* developers.google.com/maps/documentation/javascript/reference/polygon#Circle.rightclick
|
|
708
|
-
*/
|
|
709
|
-
this.circleRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
710
|
-
/** Event emitted when the circle is initialized. */
|
|
711
|
-
this.circleInitialized = new EventEmitter();
|
|
712
|
-
}
|
|
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() { }
|
|
713
744
|
ngOnInit() {
|
|
714
745
|
if (!this._map._isBrowser) {
|
|
715
746
|
return;
|
|
@@ -838,10 +869,10 @@ class MapCircle {
|
|
|
838
869
|
}
|
|
839
870
|
}
|
|
840
871
|
}
|
|
841
|
-
static
|
|
842
|
-
static
|
|
872
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapCircle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
873
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", 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 });
|
|
843
874
|
}
|
|
844
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapCircle, decorators: [{
|
|
845
876
|
type: Directive,
|
|
846
877
|
args: [{
|
|
847
878
|
selector: 'map-circle',
|
|
@@ -891,6 +922,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
891
922
|
* See developers.google.com/maps/documentation/javascript/reference/directions#DirectionsRenderer
|
|
892
923
|
*/
|
|
893
924
|
class MapDirectionsRenderer {
|
|
925
|
+
_googleMap = inject(GoogleMap);
|
|
926
|
+
_ngZone = inject(NgZone);
|
|
927
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
894
928
|
/**
|
|
895
929
|
* See developers.google.com/maps/documentation/javascript/reference/directions
|
|
896
930
|
* #DirectionsRendererOptions.directions
|
|
@@ -898,6 +932,7 @@ class MapDirectionsRenderer {
|
|
|
898
932
|
set directions(directions) {
|
|
899
933
|
this._directions = directions;
|
|
900
934
|
}
|
|
935
|
+
_directions;
|
|
901
936
|
/**
|
|
902
937
|
* See developers.google.com/maps/documentation/javascript/reference/directions
|
|
903
938
|
* #DirectionsRendererOptions
|
|
@@ -905,18 +940,17 @@ class MapDirectionsRenderer {
|
|
|
905
940
|
set options(options) {
|
|
906
941
|
this._options = options;
|
|
907
942
|
}
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
}
|
|
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() { }
|
|
920
954
|
ngOnInit() {
|
|
921
955
|
if (this._googleMap._isBrowser) {
|
|
922
956
|
if (google.maps.DirectionsRenderer && this._googleMap.googleMap) {
|
|
@@ -998,10 +1032,10 @@ class MapDirectionsRenderer {
|
|
|
998
1032
|
}
|
|
999
1033
|
}
|
|
1000
1034
|
}
|
|
1001
|
-
static
|
|
1002
|
-
static
|
|
1035
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapDirectionsRenderer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1036
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", type: MapDirectionsRenderer, isStandalone: true, selector: "map-directions-renderer", inputs: { directions: "directions", options: "options" }, outputs: { directionsChanged: "directionsChanged", directionsRendererInitialized: "directionsRendererInitialized" }, exportAs: ["mapDirectionsRenderer"], usesOnChanges: true, ngImport: i0 });
|
|
1003
1037
|
}
|
|
1004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
1038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapDirectionsRenderer, decorators: [{
|
|
1005
1039
|
type: Directive,
|
|
1006
1040
|
args: [{
|
|
1007
1041
|
selector: 'map-directions-renderer',
|
|
@@ -1024,6 +1058,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
1024
1058
|
* See developers.google.com/maps/documentation/javascript/reference/image-overlay#GroundOverlay
|
|
1025
1059
|
*/
|
|
1026
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;
|
|
1027
1075
|
/** URL of the image that will be shown in the overlay. */
|
|
1028
1076
|
set url(url) {
|
|
1029
1077
|
this._url.next(url);
|
|
@@ -1035,34 +1083,26 @@ class MapGroundOverlay {
|
|
|
1035
1083
|
set bounds(bounds) {
|
|
1036
1084
|
this._bounds.next(bounds);
|
|
1037
1085
|
}
|
|
1086
|
+
/** Whether the overlay is clickable */
|
|
1087
|
+
clickable = false;
|
|
1038
1088
|
/** Opacity of the overlay. */
|
|
1039
1089
|
set opacity(opacity) {
|
|
1040
1090
|
this._opacity.next(opacity);
|
|
1041
1091
|
}
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
this.mapClick = this._eventManager.getLazyEmitter('click');
|
|
1057
|
-
/**
|
|
1058
|
-
* See
|
|
1059
|
-
* developers.google.com/maps/documentation/javascript/reference/image-overlay
|
|
1060
|
-
* #GroundOverlay.dblclick
|
|
1061
|
-
*/
|
|
1062
|
-
this.mapDblclick = this._eventManager.getLazyEmitter('dblclick');
|
|
1063
|
-
/** Event emitted when the ground overlay is initialized. */
|
|
1064
|
-
this.groundOverlayInitialized = new EventEmitter();
|
|
1065
|
-
}
|
|
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() { }
|
|
1066
1106
|
ngOnInit() {
|
|
1067
1107
|
if (this._map._isBrowser) {
|
|
1068
1108
|
// The ground overlay setup is slightly different from the other Google Maps objects in that
|
|
@@ -1169,10 +1209,10 @@ class MapGroundOverlay {
|
|
|
1169
1209
|
}
|
|
1170
1210
|
}
|
|
1171
1211
|
}
|
|
1172
|
-
static
|
|
1173
|
-
static
|
|
1212
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapGroundOverlay, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1213
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", 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 });
|
|
1174
1214
|
}
|
|
1175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
1215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapGroundOverlay, decorators: [{
|
|
1176
1216
|
type: Directive,
|
|
1177
1217
|
args: [{
|
|
1178
1218
|
selector: 'map-ground-overlay',
|
|
@@ -1201,51 +1241,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
1201
1241
|
* See developers.google.com/maps/documentation/javascript/reference/info-window
|
|
1202
1242
|
*/
|
|
1203
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;
|
|
1204
1257
|
set options(options) {
|
|
1205
1258
|
this._options.next(options || {});
|
|
1206
1259
|
}
|
|
1207
1260
|
set position(position) {
|
|
1208
1261
|
this._position.next(position);
|
|
1209
1262
|
}
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
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
|
-
* See
|
|
1242
|
-
* developers.google.com/maps/documentation/javascript/reference/info-window
|
|
1243
|
-
* #InfoWindow.zindex_changed
|
|
1244
|
-
*/
|
|
1245
|
-
this.zindexChanged = this._eventManager.getLazyEmitter('zindex_changed');
|
|
1246
|
-
/** Event emitted when the info window is initialized. */
|
|
1247
|
-
this.infoWindowInitialized = new EventEmitter();
|
|
1248
|
-
}
|
|
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() { }
|
|
1249
1294
|
ngOnInit() {
|
|
1250
1295
|
if (this._googleMap._isBrowser) {
|
|
1251
1296
|
this._combineOptions()
|
|
@@ -1388,10 +1433,10 @@ class MapInfoWindow {
|
|
|
1388
1433
|
}
|
|
1389
1434
|
}
|
|
1390
1435
|
}
|
|
1391
|
-
static
|
|
1392
|
-
static
|
|
1436
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapInfoWindow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1437
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", 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 });
|
|
1393
1438
|
}
|
|
1394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
1439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapInfoWindow, decorators: [{
|
|
1395
1440
|
type: Directive,
|
|
1396
1441
|
args: [{
|
|
1397
1442
|
selector: 'map-info-window',
|
|
@@ -1423,36 +1468,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
1423
1468
|
* See developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer
|
|
1424
1469
|
*/
|
|
1425
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;
|
|
1426
1483
|
set options(options) {
|
|
1427
1484
|
this._options.next(options || {});
|
|
1428
1485
|
}
|
|
1429
1486
|
set url(url) {
|
|
1430
1487
|
this._url.next(url);
|
|
1431
1488
|
}
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
/**
|
|
1450
|
-
* See developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer.status_changed
|
|
1451
|
-
*/
|
|
1452
|
-
this.statusChanged = this._eventManager.getLazyEmitter('status_changed');
|
|
1453
|
-
/** Event emitted when the KML layer is initialized. */
|
|
1454
|
-
this.kmlLayerInitialized = new EventEmitter();
|
|
1455
|
-
}
|
|
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() { }
|
|
1456
1506
|
ngOnInit() {
|
|
1457
1507
|
if (this._map._isBrowser) {
|
|
1458
1508
|
this._combineOptions()
|
|
@@ -1560,10 +1610,10 @@ class MapKmlLayer {
|
|
|
1560
1610
|
}
|
|
1561
1611
|
}
|
|
1562
1612
|
}
|
|
1563
|
-
static
|
|
1564
|
-
static
|
|
1613
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapKmlLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1614
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", 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 });
|
|
1565
1615
|
}
|
|
1566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
1616
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapKmlLayer, decorators: [{
|
|
1567
1617
|
type: Directive,
|
|
1568
1618
|
args: [{
|
|
1569
1619
|
selector: 'map-kml-layer',
|
|
@@ -1600,6 +1650,9 @@ const DEFAULT_MARKER_OPTIONS$1 = {
|
|
|
1600
1650
|
* See developers.google.com/maps/documentation/javascript/reference/marker
|
|
1601
1651
|
*/
|
|
1602
1652
|
class MapMarker {
|
|
1653
|
+
_googleMap = inject(GoogleMap);
|
|
1654
|
+
_ngZone = inject(NgZone);
|
|
1655
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
1603
1656
|
/**
|
|
1604
1657
|
* Title of the marker.
|
|
1605
1658
|
* See: developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.title
|
|
@@ -1607,6 +1660,7 @@ class MapMarker {
|
|
|
1607
1660
|
set title(title) {
|
|
1608
1661
|
this._title = title;
|
|
1609
1662
|
}
|
|
1663
|
+
_title;
|
|
1610
1664
|
/**
|
|
1611
1665
|
* Position of the marker. See:
|
|
1612
1666
|
* developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.position
|
|
@@ -1614,6 +1668,7 @@ class MapMarker {
|
|
|
1614
1668
|
set position(position) {
|
|
1615
1669
|
this._position = position;
|
|
1616
1670
|
}
|
|
1671
|
+
_position;
|
|
1617
1672
|
/**
|
|
1618
1673
|
* Label for the marker.
|
|
1619
1674
|
* See: developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.label
|
|
@@ -1621,6 +1676,7 @@ class MapMarker {
|
|
|
1621
1676
|
set label(label) {
|
|
1622
1677
|
this._label = label;
|
|
1623
1678
|
}
|
|
1679
|
+
_label;
|
|
1624
1680
|
/**
|
|
1625
1681
|
* Whether the marker is clickable. See:
|
|
1626
1682
|
* developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.clickable
|
|
@@ -1628,6 +1684,7 @@ class MapMarker {
|
|
|
1628
1684
|
set clickable(clickable) {
|
|
1629
1685
|
this._clickable = clickable;
|
|
1630
1686
|
}
|
|
1687
|
+
_clickable;
|
|
1631
1688
|
/**
|
|
1632
1689
|
* Options used to configure the marker.
|
|
1633
1690
|
* See: developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions
|
|
@@ -1635,6 +1692,7 @@ class MapMarker {
|
|
|
1635
1692
|
set options(options) {
|
|
1636
1693
|
this._options = options;
|
|
1637
1694
|
}
|
|
1695
|
+
_options;
|
|
1638
1696
|
/**
|
|
1639
1697
|
* Icon to be used for the marker.
|
|
1640
1698
|
* See: https://developers.google.com/maps/documentation/javascript/reference/marker#Icon
|
|
@@ -1642,6 +1700,7 @@ class MapMarker {
|
|
|
1642
1700
|
set icon(icon) {
|
|
1643
1701
|
this._icon = icon;
|
|
1644
1702
|
}
|
|
1703
|
+
_icon;
|
|
1645
1704
|
/**
|
|
1646
1705
|
* Whether the marker is visible.
|
|
1647
1706
|
* See: developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.visible
|
|
@@ -1649,118 +1708,121 @@ class MapMarker {
|
|
|
1649
1708
|
set visible(value) {
|
|
1650
1709
|
this._visible = value;
|
|
1651
1710
|
}
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
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
|
-
|
|
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() { }
|
|
1764
1826
|
ngOnInit() {
|
|
1765
1827
|
if (!this._googleMap._isBrowser) {
|
|
1766
1828
|
return;
|
|
@@ -1948,15 +2010,15 @@ class MapMarker {
|
|
|
1948
2010
|
}
|
|
1949
2011
|
}
|
|
1950
2012
|
}
|
|
1951
|
-
static
|
|
1952
|
-
static
|
|
2013
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapMarker, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2014
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", 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: [
|
|
1953
2015
|
{
|
|
1954
2016
|
provide: MAP_MARKER,
|
|
1955
2017
|
useExisting: MapMarker,
|
|
1956
2018
|
},
|
|
1957
|
-
], exportAs: ["mapMarker"], usesOnChanges: true, ngImport: i0 });
|
|
2019
|
+
], exportAs: ["mapMarker"], usesOnChanges: true, ngImport: i0 });
|
|
1958
2020
|
}
|
|
1959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
2021
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapMarker, decorators: [{
|
|
1960
2022
|
type: Directive,
|
|
1961
2023
|
args: [{
|
|
1962
2024
|
selector: 'map-marker',
|
|
@@ -2041,82 +2103,108 @@ const DEFAULT_CLUSTERER_OPTIONS = {};
|
|
|
2041
2103
|
*
|
|
2042
2104
|
*/
|
|
2043
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 = () => '';
|
|
2044
2114
|
set averageCenter(averageCenter) {
|
|
2045
2115
|
this._averageCenter = averageCenter;
|
|
2046
2116
|
}
|
|
2117
|
+
_averageCenter;
|
|
2118
|
+
batchSize;
|
|
2047
2119
|
set batchSizeIE(batchSizeIE) {
|
|
2048
2120
|
this._batchSizeIE = batchSizeIE;
|
|
2049
2121
|
}
|
|
2122
|
+
_batchSizeIE;
|
|
2050
2123
|
set calculator(calculator) {
|
|
2051
2124
|
this._calculator = calculator;
|
|
2052
2125
|
}
|
|
2126
|
+
_calculator;
|
|
2053
2127
|
set clusterClass(clusterClass) {
|
|
2054
2128
|
this._clusterClass = clusterClass;
|
|
2055
2129
|
}
|
|
2130
|
+
_clusterClass;
|
|
2056
2131
|
set enableRetinaIcons(enableRetinaIcons) {
|
|
2057
2132
|
this._enableRetinaIcons = enableRetinaIcons;
|
|
2058
2133
|
}
|
|
2134
|
+
_enableRetinaIcons;
|
|
2059
2135
|
set gridSize(gridSize) {
|
|
2060
2136
|
this._gridSize = gridSize;
|
|
2061
2137
|
}
|
|
2138
|
+
_gridSize;
|
|
2062
2139
|
set ignoreHidden(ignoreHidden) {
|
|
2063
2140
|
this._ignoreHidden = ignoreHidden;
|
|
2064
2141
|
}
|
|
2142
|
+
_ignoreHidden;
|
|
2065
2143
|
set imageExtension(imageExtension) {
|
|
2066
2144
|
this._imageExtension = imageExtension;
|
|
2067
2145
|
}
|
|
2146
|
+
_imageExtension;
|
|
2068
2147
|
set imagePath(imagePath) {
|
|
2069
2148
|
this._imagePath = imagePath;
|
|
2070
2149
|
}
|
|
2150
|
+
_imagePath;
|
|
2071
2151
|
set imageSizes(imageSizes) {
|
|
2072
2152
|
this._imageSizes = imageSizes;
|
|
2073
2153
|
}
|
|
2154
|
+
_imageSizes;
|
|
2074
2155
|
set maxZoom(maxZoom) {
|
|
2075
2156
|
this._maxZoom = maxZoom;
|
|
2076
2157
|
}
|
|
2158
|
+
_maxZoom;
|
|
2077
2159
|
set minimumClusterSize(minimumClusterSize) {
|
|
2078
2160
|
this._minimumClusterSize = minimumClusterSize;
|
|
2079
2161
|
}
|
|
2162
|
+
_minimumClusterSize;
|
|
2080
2163
|
set styles(styles) {
|
|
2081
2164
|
this._styles = styles;
|
|
2082
2165
|
}
|
|
2166
|
+
_styles;
|
|
2083
2167
|
set title(title) {
|
|
2084
2168
|
this._title = title;
|
|
2085
2169
|
}
|
|
2170
|
+
_title;
|
|
2086
2171
|
set zIndex(zIndex) {
|
|
2087
2172
|
this._zIndex = zIndex;
|
|
2088
2173
|
}
|
|
2174
|
+
_zIndex;
|
|
2089
2175
|
set zoomOnClick(zoomOnClick) {
|
|
2090
2176
|
this._zoomOnClick = zoomOnClick;
|
|
2091
2177
|
}
|
|
2178
|
+
_zoomOnClick;
|
|
2092
2179
|
set options(options) {
|
|
2093
2180
|
this._options = options;
|
|
2094
2181
|
}
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
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() { }
|
|
2120
2208
|
ngOnInit() {
|
|
2121
2209
|
if (this._canInitialize) {
|
|
2122
2210
|
this._ngZone.runOutsideAngular(() => {
|
|
@@ -2374,10 +2462,10 @@ class DeprecatedMapMarkerClusterer {
|
|
|
2374
2462
|
}
|
|
2375
2463
|
}
|
|
2376
2464
|
}
|
|
2377
|
-
static
|
|
2378
|
-
static
|
|
2465
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: DeprecatedMapMarkerClusterer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2466
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0-rc.0", 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 });
|
|
2379
2467
|
}
|
|
2380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
2468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: DeprecatedMapMarkerClusterer, decorators: [{
|
|
2381
2469
|
type: Component,
|
|
2382
2470
|
args: [{
|
|
2383
2471
|
selector: 'deprecated-map-marker-clusterer',
|
|
@@ -2444,66 +2532,71 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
2444
2532
|
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon
|
|
2445
2533
|
*/
|
|
2446
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;
|
|
2447
2547
|
set options(options) {
|
|
2448
2548
|
this._options.next(options || {});
|
|
2449
2549
|
}
|
|
2450
2550
|
set paths(paths) {
|
|
2451
2551
|
this._paths.next(paths);
|
|
2452
2552
|
}
|
|
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
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
/**
|
|
2501
|
-
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.rightclick
|
|
2502
|
-
*/
|
|
2503
|
-
this.polygonRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
2504
|
-
/** Event emitted when the polygon is initialized. */
|
|
2505
|
-
this.polygonInitialized = new EventEmitter();
|
|
2506
|
-
}
|
|
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() { }
|
|
2507
2600
|
ngOnInit() {
|
|
2508
2601
|
if (this._map._isBrowser) {
|
|
2509
2602
|
this._combineOptions()
|
|
@@ -2609,10 +2702,10 @@ class MapPolygon {
|
|
|
2609
2702
|
}
|
|
2610
2703
|
}
|
|
2611
2704
|
}
|
|
2612
|
-
static
|
|
2613
|
-
static
|
|
2705
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapPolygon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2706
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", 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 });
|
|
2614
2707
|
}
|
|
2615
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
2708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapPolygon, decorators: [{
|
|
2616
2709
|
type: Directive,
|
|
2617
2710
|
args: [{
|
|
2618
2711
|
selector: 'map-polygon',
|
|
@@ -2655,66 +2748,71 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
2655
2748
|
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline
|
|
2656
2749
|
*/
|
|
2657
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;
|
|
2658
2763
|
set options(options) {
|
|
2659
2764
|
this._options.next(options || {});
|
|
2660
2765
|
}
|
|
2661
2766
|
set path(path) {
|
|
2662
2767
|
this._path.next(path);
|
|
2663
2768
|
}
|
|
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
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
/**
|
|
2712
|
-
* See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.rightclick
|
|
2713
|
-
*/
|
|
2714
|
-
this.polylineRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
2715
|
-
/** Event emitted when the polyline is initialized. */
|
|
2716
|
-
this.polylineInitialized = new EventEmitter();
|
|
2717
|
-
}
|
|
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() { }
|
|
2718
2816
|
ngOnInit() {
|
|
2719
2817
|
if (this._map._isBrowser) {
|
|
2720
2818
|
this._combineOptions()
|
|
@@ -2813,10 +2911,10 @@ class MapPolyline {
|
|
|
2813
2911
|
}
|
|
2814
2912
|
}
|
|
2815
2913
|
}
|
|
2816
|
-
static
|
|
2817
|
-
static
|
|
2914
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapPolyline, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2915
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", 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 });
|
|
2818
2916
|
}
|
|
2819
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
2917
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapPolyline, decorators: [{
|
|
2820
2918
|
type: Directive,
|
|
2821
2919
|
args: [{
|
|
2822
2920
|
selector: 'map-polyline',
|
|
@@ -2859,81 +2957,86 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
2859
2957
|
* See developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle
|
|
2860
2958
|
*/
|
|
2861
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;
|
|
2862
2972
|
set options(options) {
|
|
2863
2973
|
this._options.next(options || {});
|
|
2864
2974
|
}
|
|
2865
2975
|
set bounds(bounds) {
|
|
2866
2976
|
this._bounds.next(bounds);
|
|
2867
2977
|
}
|
|
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
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
* See
|
|
2931
|
-
* developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.rightclick
|
|
2932
|
-
*/
|
|
2933
|
-
this.rectangleRightclick = this._eventManager.getLazyEmitter('rightclick');
|
|
2934
|
-
/** Event emitted when the rectangle is initialized. */
|
|
2935
|
-
this.rectangleInitialized = new EventEmitter();
|
|
2936
|
-
}
|
|
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() { }
|
|
2937
3040
|
ngOnInit() {
|
|
2938
3041
|
if (this._map._isBrowser) {
|
|
2939
3042
|
this._combineOptions()
|
|
@@ -3035,10 +3138,10 @@ class MapRectangle {
|
|
|
3035
3138
|
}
|
|
3036
3139
|
}
|
|
3037
3140
|
}
|
|
3038
|
-
static
|
|
3039
|
-
static
|
|
3141
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapRectangle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3142
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", 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 });
|
|
3040
3143
|
}
|
|
3041
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
3144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapRectangle, decorators: [{
|
|
3042
3145
|
type: Directive,
|
|
3043
3146
|
args: [{
|
|
3044
3147
|
selector: 'map-rectangle',
|
|
@@ -3083,20 +3186,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
3083
3186
|
* See developers.google.com/maps/documentation/javascript/reference/map#TrafficLayer
|
|
3084
3187
|
*/
|
|
3085
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;
|
|
3086
3199
|
/**
|
|
3087
3200
|
* Whether the traffic layer refreshes with updated information automatically.
|
|
3088
3201
|
*/
|
|
3089
3202
|
set autoRefresh(autoRefresh) {
|
|
3090
3203
|
this._autoRefresh.next(autoRefresh);
|
|
3091
3204
|
}
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
this._autoRefresh = new BehaviorSubject(true);
|
|
3096
|
-
this._destroyed = new Subject();
|
|
3097
|
-
/** Event emitted when the traffic layer is initialized. */
|
|
3098
|
-
this.trafficLayerInitialized = new EventEmitter();
|
|
3099
|
-
}
|
|
3205
|
+
/** Event emitted when the traffic layer is initialized. */
|
|
3206
|
+
trafficLayerInitialized = new EventEmitter();
|
|
3207
|
+
constructor() { }
|
|
3100
3208
|
ngOnInit() {
|
|
3101
3209
|
if (this._map._isBrowser) {
|
|
3102
3210
|
this._combineOptions()
|
|
@@ -3149,10 +3257,10 @@ class MapTrafficLayer {
|
|
|
3149
3257
|
'Please wait for the Traffic Layer to load before trying to interact with it.');
|
|
3150
3258
|
}
|
|
3151
3259
|
}
|
|
3152
|
-
static
|
|
3153
|
-
static
|
|
3260
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapTrafficLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3261
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", type: MapTrafficLayer, isStandalone: true, selector: "map-traffic-layer", inputs: { autoRefresh: "autoRefresh" }, outputs: { trafficLayerInitialized: "trafficLayerInitialized" }, exportAs: ["mapTrafficLayer"], ngImport: i0 });
|
|
3154
3262
|
}
|
|
3155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
3263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapTrafficLayer, decorators: [{
|
|
3156
3264
|
type: Directive,
|
|
3157
3265
|
args: [{
|
|
3158
3266
|
selector: 'map-traffic-layer',
|
|
@@ -3171,12 +3279,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
3171
3279
|
* See developers.google.com/maps/documentation/javascript/reference/map#TransitLayer
|
|
3172
3280
|
*/
|
|
3173
3281
|
class MapTransitLayer {
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
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();
|
|
3180
3292
|
ngOnInit() {
|
|
3181
3293
|
if (this._map._isBrowser) {
|
|
3182
3294
|
if (google.maps.TransitLayer && this._map.googleMap) {
|
|
@@ -3208,10 +3320,10 @@ class MapTransitLayer {
|
|
|
3208
3320
|
'Please wait for the Transit Layer to load before trying to interact with it.');
|
|
3209
3321
|
}
|
|
3210
3322
|
}
|
|
3211
|
-
static
|
|
3212
|
-
static
|
|
3323
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapTransitLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3324
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", type: MapTransitLayer, isStandalone: true, selector: "map-transit-layer", outputs: { transitLayerInitialized: "transitLayerInitialized" }, exportAs: ["mapTransitLayer"], ngImport: i0 });
|
|
3213
3325
|
}
|
|
3214
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
3326
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapTransitLayer, decorators: [{
|
|
3215
3327
|
type: Directive,
|
|
3216
3328
|
args: [{
|
|
3217
3329
|
selector: 'map-transit-layer',
|
|
@@ -3228,6 +3340,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
3228
3340
|
* See: https://developers.google.com/maps/documentation/javascript/reference/visualization
|
|
3229
3341
|
*/
|
|
3230
3342
|
class MapHeatmapLayer {
|
|
3343
|
+
_googleMap = inject(GoogleMap);
|
|
3344
|
+
_ngZone = inject(NgZone);
|
|
3231
3345
|
/**
|
|
3232
3346
|
* Data shown on the heatmap.
|
|
3233
3347
|
* See: https://developers.google.com/maps/documentation/javascript/reference/visualization
|
|
@@ -3235,6 +3349,7 @@ class MapHeatmapLayer {
|
|
|
3235
3349
|
set data(data) {
|
|
3236
3350
|
this._data = data;
|
|
3237
3351
|
}
|
|
3352
|
+
_data;
|
|
3238
3353
|
/**
|
|
3239
3354
|
* Options used to configure the heatmap. See:
|
|
3240
3355
|
* developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayerOptions
|
|
@@ -3242,12 +3357,16 @@ class MapHeatmapLayer {
|
|
|
3242
3357
|
set options(options) {
|
|
3243
3358
|
this._options = options;
|
|
3244
3359
|
}
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
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() { }
|
|
3251
3370
|
ngOnInit() {
|
|
3252
3371
|
if (this._googleMap._isBrowser) {
|
|
3253
3372
|
if (!window.google?.maps?.visualization &&
|
|
@@ -3338,10 +3457,10 @@ class MapHeatmapLayer {
|
|
|
3338
3457
|
}
|
|
3339
3458
|
}
|
|
3340
3459
|
}
|
|
3341
|
-
static
|
|
3342
|
-
static
|
|
3460
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapHeatmapLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3461
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", type: MapHeatmapLayer, isStandalone: true, selector: "map-heatmap-layer", inputs: { data: "data", options: "options" }, outputs: { heatmapInitialized: "heatmapInitialized" }, exportAs: ["mapHeatmapLayer"], usesOnChanges: true, ngImport: i0 });
|
|
3343
3462
|
}
|
|
3344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
3463
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapHeatmapLayer, decorators: [{
|
|
3345
3464
|
type: Directive,
|
|
3346
3465
|
args: [{
|
|
3347
3466
|
selector: 'map-heatmap-layer',
|
|
@@ -3373,6 +3492,9 @@ const DEFAULT_MARKER_OPTIONS = {
|
|
|
3373
3492
|
* See developers.google.com/maps/documentation/javascript/reference/marker
|
|
3374
3493
|
*/
|
|
3375
3494
|
class MapAdvancedMarker {
|
|
3495
|
+
_googleMap = inject(GoogleMap);
|
|
3496
|
+
_ngZone = inject(NgZone);
|
|
3497
|
+
_eventManager = new MapEventManager(inject(NgZone));
|
|
3376
3498
|
/**
|
|
3377
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.
|
|
3378
3500
|
* See: https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.title
|
|
@@ -3380,6 +3502,7 @@ class MapAdvancedMarker {
|
|
|
3380
3502
|
set title(title) {
|
|
3381
3503
|
this._title = title;
|
|
3382
3504
|
}
|
|
3505
|
+
_title;
|
|
3383
3506
|
/**
|
|
3384
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.
|
|
3385
3508
|
* Note: AdvancedMarkerElement with altitude is only supported on vector maps.
|
|
@@ -3388,6 +3511,7 @@ class MapAdvancedMarker {
|
|
|
3388
3511
|
set position(position) {
|
|
3389
3512
|
this._position = position;
|
|
3390
3513
|
}
|
|
3514
|
+
_position;
|
|
3391
3515
|
/**
|
|
3392
3516
|
* The DOM Element backing the visual of an AdvancedMarkerElement.
|
|
3393
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.
|
|
@@ -3396,6 +3520,7 @@ class MapAdvancedMarker {
|
|
|
3396
3520
|
set content(content) {
|
|
3397
3521
|
this._content = content;
|
|
3398
3522
|
}
|
|
3523
|
+
_content;
|
|
3399
3524
|
/**
|
|
3400
3525
|
* If true, the AdvancedMarkerElement can be dragged.
|
|
3401
3526
|
* Note: AdvancedMarkerElement with altitude is not draggable.
|
|
@@ -3404,6 +3529,7 @@ class MapAdvancedMarker {
|
|
|
3404
3529
|
set gmpDraggable(draggable) {
|
|
3405
3530
|
this._draggable = draggable;
|
|
3406
3531
|
}
|
|
3532
|
+
_draggable;
|
|
3407
3533
|
/**
|
|
3408
3534
|
* Options for constructing an AdvancedMarkerElement.
|
|
3409
3535
|
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions
|
|
@@ -3411,6 +3537,7 @@ class MapAdvancedMarker {
|
|
|
3411
3537
|
set options(options) {
|
|
3412
3538
|
this._options = options;
|
|
3413
3539
|
}
|
|
3540
|
+
_options;
|
|
3414
3541
|
/**
|
|
3415
3542
|
* AdvancedMarkerElements on the map are prioritized by zIndex, with higher values indicating higher display.
|
|
3416
3543
|
* https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.zIndex
|
|
@@ -3418,53 +3545,56 @@ class MapAdvancedMarker {
|
|
|
3418
3545
|
set zIndex(zIndex) {
|
|
3419
3546
|
this._zIndex = zIndex;
|
|
3420
3547
|
}
|
|
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
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
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() { }
|
|
3468
3598
|
ngOnInit() {
|
|
3469
3599
|
if (!this._googleMap._isBrowser) {
|
|
3470
3600
|
return;
|
|
@@ -3551,15 +3681,15 @@ class MapAdvancedMarker {
|
|
|
3551
3681
|
}
|
|
3552
3682
|
}
|
|
3553
3683
|
}
|
|
3554
|
-
static
|
|
3555
|
-
static
|
|
3684
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapAdvancedMarker, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3685
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-rc.0", 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: [
|
|
3556
3686
|
{
|
|
3557
3687
|
provide: MAP_MARKER,
|
|
3558
3688
|
useExisting: MapAdvancedMarker,
|
|
3559
3689
|
},
|
|
3560
|
-
], exportAs: ["mapAdvancedMarker"], usesOnChanges: true, ngImport: i0 });
|
|
3690
|
+
], exportAs: ["mapAdvancedMarker"], usesOnChanges: true, ngImport: i0 });
|
|
3561
3691
|
}
|
|
3562
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
3692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapAdvancedMarker, decorators: [{
|
|
3563
3693
|
type: Directive,
|
|
3564
3694
|
args: [{
|
|
3565
3695
|
selector: 'map-advanced-marker',
|
|
@@ -3612,23 +3742,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
3612
3742
|
* See https://developers.google.com/maps/documentation/javascript/marker-clustering
|
|
3613
3743
|
*/
|
|
3614
3744
|
class MapMarkerClusterer {
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
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;
|
|
3632
3773
|
async ngOnInit() {
|
|
3633
3774
|
if (this._canInitialize) {
|
|
3634
3775
|
await this._createCluster();
|
|
@@ -3734,10 +3875,10 @@ class MapMarkerClusterer {
|
|
|
3734
3875
|
}
|
|
3735
3876
|
}
|
|
3736
3877
|
}
|
|
3737
|
-
static
|
|
3738
|
-
static
|
|
3878
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapMarkerClusterer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3879
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0-rc.0", 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 });
|
|
3739
3880
|
}
|
|
3740
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
3881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapMarkerClusterer, decorators: [{
|
|
3741
3882
|
type: Component,
|
|
3742
3883
|
args: [{
|
|
3743
3884
|
selector: 'map-marker-clusterer',
|
|
@@ -3784,8 +3925,8 @@ const COMPONENTS = [
|
|
|
3784
3925
|
MapMarkerClusterer,
|
|
3785
3926
|
];
|
|
3786
3927
|
class GoogleMapsModule {
|
|
3787
|
-
static
|
|
3788
|
-
static
|
|
3928
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: GoogleMapsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3929
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-rc.0", ngImport: i0, type: GoogleMapsModule, imports: [GoogleMap,
|
|
3789
3930
|
MapBaseLayer,
|
|
3790
3931
|
MapBicyclingLayer,
|
|
3791
3932
|
MapCircle,
|
|
@@ -3819,10 +3960,10 @@ class GoogleMapsModule {
|
|
|
3819
3960
|
MapRectangle,
|
|
3820
3961
|
MapTrafficLayer,
|
|
3821
3962
|
MapTransitLayer,
|
|
3822
|
-
MapMarkerClusterer] });
|
|
3823
|
-
static
|
|
3963
|
+
MapMarkerClusterer] });
|
|
3964
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: GoogleMapsModule });
|
|
3824
3965
|
}
|
|
3825
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
3966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: GoogleMapsModule, decorators: [{
|
|
3826
3967
|
type: NgModule,
|
|
3827
3968
|
args: [{
|
|
3828
3969
|
imports: COMPONENTS,
|
|
@@ -3838,9 +3979,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
3838
3979
|
* See developers.google.com/maps/documentation/javascript/reference/directions#DirectionsService
|
|
3839
3980
|
*/
|
|
3840
3981
|
class MapDirectionsService {
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
}
|
|
3982
|
+
_ngZone = inject(NgZone);
|
|
3983
|
+
_directionsService;
|
|
3984
|
+
constructor() { }
|
|
3844
3985
|
/**
|
|
3845
3986
|
* See
|
|
3846
3987
|
* developers.google.com/maps/documentation/javascript/reference/directions
|
|
@@ -3872,10 +4013,10 @@ class MapDirectionsService {
|
|
|
3872
4013
|
}
|
|
3873
4014
|
return Promise.resolve(this._directionsService);
|
|
3874
4015
|
}
|
|
3875
|
-
static
|
|
3876
|
-
static
|
|
4016
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapDirectionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4017
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapDirectionsService, providedIn: 'root' });
|
|
3877
4018
|
}
|
|
3878
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
4019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapDirectionsService, decorators: [{
|
|
3879
4020
|
type: Injectable,
|
|
3880
4021
|
args: [{ providedIn: 'root' }]
|
|
3881
4022
|
}], ctorParameters: () => [] });
|
|
@@ -3886,9 +4027,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10",
|
|
|
3886
4027
|
* See developers.google.com/maps/documentation/javascript/reference/geocoder#Geocoder
|
|
3887
4028
|
*/
|
|
3888
4029
|
class MapGeocoder {
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
}
|
|
4030
|
+
_ngZone = inject(NgZone);
|
|
4031
|
+
_geocoder;
|
|
4032
|
+
constructor() { }
|
|
3892
4033
|
/**
|
|
3893
4034
|
* See developers.google.com/maps/documentation/javascript/reference/geocoder#Geocoder.geocode
|
|
3894
4035
|
*/
|
|
@@ -3918,10 +4059,10 @@ class MapGeocoder {
|
|
|
3918
4059
|
}
|
|
3919
4060
|
return Promise.resolve(this._geocoder);
|
|
3920
4061
|
}
|
|
3921
|
-
static
|
|
3922
|
-
static
|
|
4062
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapGeocoder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4063
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapGeocoder, providedIn: 'root' });
|
|
3923
4064
|
}
|
|
3924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
|
4065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: MapGeocoder, decorators: [{
|
|
3925
4066
|
type: Injectable,
|
|
3926
4067
|
args: [{ providedIn: 'root' }]
|
|
3927
4068
|
}], ctorParameters: () => [] });
|