@angular/google-maps 17.1.2 → 17.2.0-next.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/esm2022/google-map/google-map.mjs +7 -6
- package/esm2022/google-maps-module.mjs +5 -5
- package/esm2022/map-base-layer.mjs +4 -4
- package/esm2022/map-bicycling-layer/map-bicycling-layer.mjs +6 -10
- package/esm2022/map-circle/map-circle.mjs +6 -10
- package/esm2022/map-directions-renderer/map-directions-renderer.mjs +6 -10
- package/esm2022/map-directions-renderer/map-directions-service.mjs +6 -7
- package/esm2022/map-geocoder/map-geocoder.mjs +6 -7
- package/esm2022/map-ground-overlay/map-ground-overlay.mjs +6 -10
- package/esm2022/map-heatmap-layer/map-heatmap-layer.mjs +7 -8
- package/esm2022/map-info-window/map-info-window.mjs +7 -7
- package/esm2022/map-kml-layer/map-kml-layer.mjs +6 -10
- package/esm2022/map-marker/map-marker.mjs +6 -10
- package/esm2022/map-marker-clusterer/map-marker-clusterer.mjs +4 -4
- package/esm2022/map-polygon/map-polygon.mjs +6 -10
- package/esm2022/map-polyline/map-polyline.mjs +6 -10
- package/esm2022/map-rectangle/map-rectangle.mjs +6 -10
- package/esm2022/map-traffic-layer/map-traffic-layer.mjs +6 -10
- package/esm2022/map-transit-layer/map-transit-layer.mjs +6 -10
- package/fesm2022/google-maps.mjs +93 -130
- package/fesm2022/google-maps.mjs.map +1 -1
- package/package.json +4 -4
- package/esm2022/import-library.mjs +0 -14
package/fesm2022/google-maps.mjs
CHANGED
|
@@ -68,13 +68,6 @@ class MapEventManager {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
/** Imports a Google Maps library. */
|
|
72
|
-
function importLibrary(name, symbol) {
|
|
73
|
-
// TODO(crisbeto): needs to cast to `any` to avoid some internal limitations around typings.
|
|
74
|
-
// Should be cleaned up eventually.
|
|
75
|
-
return window.google.maps.importLibrary(name).then((library) => library[symbol]);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
71
|
/// <reference types="google.maps" />
|
|
79
72
|
/** default options set to the Googleplex */
|
|
80
73
|
const DEFAULT_OPTIONS = {
|
|
@@ -260,7 +253,9 @@ class GoogleMap {
|
|
|
260
253
|
}
|
|
261
254
|
else {
|
|
262
255
|
this._ngZone.runOutsideAngular(() => {
|
|
263
|
-
|
|
256
|
+
google.maps
|
|
257
|
+
.importLibrary('maps')
|
|
258
|
+
.then(lib => this._initialize(lib.Map));
|
|
264
259
|
});
|
|
265
260
|
}
|
|
266
261
|
}
|
|
@@ -451,10 +446,10 @@ class GoogleMap {
|
|
|
451
446
|
'Please wait for the API to load before trying to interact with it.');
|
|
452
447
|
}
|
|
453
448
|
}
|
|
454
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
455
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.
|
|
449
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: GoogleMap, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
450
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: GoogleMap, isStandalone: true, selector: "google-map", inputs: { height: "height", width: "width", 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 }); }
|
|
456
451
|
}
|
|
457
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: GoogleMap, decorators: [{
|
|
458
453
|
type: Component,
|
|
459
454
|
args: [{
|
|
460
455
|
selector: 'google-map',
|
|
@@ -556,10 +551,10 @@ class MapBaseLayer {
|
|
|
556
551
|
_initializeObject() { }
|
|
557
552
|
_setMap() { }
|
|
558
553
|
_unsetMap() { }
|
|
559
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
560
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
554
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapBaseLayer, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
555
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", type: MapBaseLayer, isStandalone: true, selector: "map-base-layer", exportAs: ["mapBaseLayer"], ngImport: i0 }); }
|
|
561
556
|
}
|
|
562
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
557
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapBaseLayer, decorators: [{
|
|
563
558
|
type: Directive,
|
|
564
559
|
args: [{
|
|
565
560
|
selector: 'map-base-layer',
|
|
@@ -588,11 +583,8 @@ class MapBicyclingLayer {
|
|
|
588
583
|
}
|
|
589
584
|
else {
|
|
590
585
|
this._zone.runOutsideAngular(() => {
|
|
591
|
-
Promise.all([
|
|
592
|
-
this.
|
|
593
|
-
importLibrary('maps', 'BicyclingLayer'),
|
|
594
|
-
]).then(([map, layerConstructor]) => {
|
|
595
|
-
this._initialize(map, layerConstructor);
|
|
586
|
+
Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {
|
|
587
|
+
this._initialize(map, lib.BicyclingLayer);
|
|
596
588
|
});
|
|
597
589
|
});
|
|
598
590
|
}
|
|
@@ -615,10 +607,10 @@ class MapBicyclingLayer {
|
|
|
615
607
|
'Please wait for the Transit Layer to load before trying to interact with it.');
|
|
616
608
|
}
|
|
617
609
|
}
|
|
618
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
619
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
610
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapBicyclingLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
611
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", type: MapBicyclingLayer, isStandalone: true, selector: "map-bicycling-layer", outputs: { bicyclingLayerInitialized: "bicyclingLayerInitialized" }, exportAs: ["mapBicyclingLayer"], ngImport: i0 }); }
|
|
620
612
|
}
|
|
621
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapBicyclingLayer, decorators: [{
|
|
622
614
|
type: Directive,
|
|
623
615
|
args: [{
|
|
624
616
|
selector: 'map-bicycling-layer',
|
|
@@ -732,11 +724,8 @@ class MapCircle {
|
|
|
732
724
|
}
|
|
733
725
|
else {
|
|
734
726
|
this._ngZone.runOutsideAngular(() => {
|
|
735
|
-
Promise.all([
|
|
736
|
-
this.
|
|
737
|
-
importLibrary('maps', 'Circle'),
|
|
738
|
-
]).then(([map, circleConstructor]) => {
|
|
739
|
-
this._initialize(map, circleConstructor, options);
|
|
727
|
+
Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {
|
|
728
|
+
this._initialize(map, lib.Circle, options);
|
|
740
729
|
});
|
|
741
730
|
});
|
|
742
731
|
}
|
|
@@ -851,10 +840,10 @@ class MapCircle {
|
|
|
851
840
|
}
|
|
852
841
|
}
|
|
853
842
|
}
|
|
854
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
855
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
843
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapCircle, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
844
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", 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 }); }
|
|
856
845
|
}
|
|
857
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
846
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapCircle, decorators: [{
|
|
858
847
|
type: Directive,
|
|
859
848
|
args: [{
|
|
860
849
|
selector: 'map-circle',
|
|
@@ -938,11 +927,8 @@ class MapDirectionsRenderer {
|
|
|
938
927
|
}
|
|
939
928
|
else {
|
|
940
929
|
this._ngZone.runOutsideAngular(() => {
|
|
941
|
-
Promise.all([
|
|
942
|
-
this.
|
|
943
|
-
importLibrary('routes', 'DirectionsRenderer'),
|
|
944
|
-
]).then(([map, rendererConstructor]) => {
|
|
945
|
-
this._initialize(map, rendererConstructor);
|
|
930
|
+
Promise.all([this._googleMap._resolveMap(), google.maps.importLibrary('routes')]).then(([map, lib]) => {
|
|
931
|
+
this._initialize(map, lib.DirectionsRenderer);
|
|
946
932
|
});
|
|
947
933
|
});
|
|
948
934
|
}
|
|
@@ -1015,10 +1001,10 @@ class MapDirectionsRenderer {
|
|
|
1015
1001
|
}
|
|
1016
1002
|
}
|
|
1017
1003
|
}
|
|
1018
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
1019
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
1004
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapDirectionsRenderer, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1005
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", type: MapDirectionsRenderer, isStandalone: true, selector: "map-directions-renderer", inputs: { directions: "directions", options: "options" }, outputs: { directionsChanged: "directionsChanged", directionsRendererInitialized: "directionsRendererInitialized" }, exportAs: ["mapDirectionsRenderer"], usesOnChanges: true, ngImport: i0 }); }
|
|
1020
1006
|
}
|
|
1021
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
1007
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapDirectionsRenderer, decorators: [{
|
|
1022
1008
|
type: Directive,
|
|
1023
1009
|
args: [{
|
|
1024
1010
|
selector: 'map-directions-renderer',
|
|
@@ -1099,11 +1085,8 @@ class MapGroundOverlay {
|
|
|
1099
1085
|
}
|
|
1100
1086
|
else {
|
|
1101
1087
|
this._ngZone.runOutsideAngular(() => {
|
|
1102
|
-
Promise.all([
|
|
1103
|
-
this.
|
|
1104
|
-
importLibrary('maps', 'GroundOverlay'),
|
|
1105
|
-
]).then(([map, overlayConstructor]) => {
|
|
1106
|
-
this._initialize(map, overlayConstructor, bounds);
|
|
1088
|
+
Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {
|
|
1089
|
+
this._initialize(map, lib.GroundOverlay, bounds);
|
|
1107
1090
|
});
|
|
1108
1091
|
});
|
|
1109
1092
|
}
|
|
@@ -1190,10 +1173,10 @@ class MapGroundOverlay {
|
|
|
1190
1173
|
}
|
|
1191
1174
|
}
|
|
1192
1175
|
}
|
|
1193
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
1194
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
1176
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapGroundOverlay, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1177
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", 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 }); }
|
|
1195
1178
|
}
|
|
1196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
1179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapGroundOverlay, decorators: [{
|
|
1197
1180
|
type: Directive,
|
|
1198
1181
|
args: [{
|
|
1199
1182
|
selector: 'map-ground-overlay',
|
|
@@ -1278,7 +1261,9 @@ class MapInfoWindow {
|
|
|
1278
1261
|
}
|
|
1279
1262
|
else {
|
|
1280
1263
|
this._ngZone.runOutsideAngular(() => {
|
|
1281
|
-
importLibrary('maps'
|
|
1264
|
+
google.maps.importLibrary('maps').then(lib => {
|
|
1265
|
+
this._initialize(lib.InfoWindow, options);
|
|
1266
|
+
});
|
|
1282
1267
|
});
|
|
1283
1268
|
}
|
|
1284
1269
|
});
|
|
@@ -1351,7 +1336,6 @@ class MapInfoWindow {
|
|
|
1351
1336
|
// case where the window doesn't have an anchor, but is placed at a particular position.
|
|
1352
1337
|
if (this.infoWindow.get('anchor') !== anchorObject || !anchorObject) {
|
|
1353
1338
|
this._elementRef.nativeElement.style.display = '';
|
|
1354
|
-
// The config is cast to `any`, because the internal typings are out of date.
|
|
1355
1339
|
this.infoWindow.open({
|
|
1356
1340
|
map: this._googleMap.googleMap,
|
|
1357
1341
|
anchor: anchorObject,
|
|
@@ -1392,10 +1376,10 @@ class MapInfoWindow {
|
|
|
1392
1376
|
}
|
|
1393
1377
|
}
|
|
1394
1378
|
}
|
|
1395
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
1396
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
1379
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapInfoWindow, deps: [{ token: GoogleMap }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1380
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", 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 }); }
|
|
1397
1381
|
}
|
|
1398
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
1382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapInfoWindow, decorators: [{
|
|
1399
1383
|
type: Directive,
|
|
1400
1384
|
args: [{
|
|
1401
1385
|
selector: 'map-info-window',
|
|
@@ -1468,11 +1452,8 @@ class MapKmlLayer {
|
|
|
1468
1452
|
}
|
|
1469
1453
|
else {
|
|
1470
1454
|
this._ngZone.runOutsideAngular(() => {
|
|
1471
|
-
Promise.all([
|
|
1472
|
-
this.
|
|
1473
|
-
importLibrary('maps', 'KmlLayer'),
|
|
1474
|
-
]).then(([map, layerConstructor]) => {
|
|
1475
|
-
this._initialize(map, layerConstructor, options);
|
|
1455
|
+
Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {
|
|
1456
|
+
this._initialize(map, lib.KmlLayer, options);
|
|
1476
1457
|
});
|
|
1477
1458
|
});
|
|
1478
1459
|
}
|
|
@@ -1568,10 +1549,10 @@ class MapKmlLayer {
|
|
|
1568
1549
|
}
|
|
1569
1550
|
}
|
|
1570
1551
|
}
|
|
1571
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
1572
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
1552
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapKmlLayer, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1553
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", 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 }); }
|
|
1573
1554
|
}
|
|
1574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
1555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapKmlLayer, decorators: [{
|
|
1575
1556
|
type: Directive,
|
|
1576
1557
|
args: [{
|
|
1577
1558
|
selector: 'map-kml-layer',
|
|
@@ -1776,11 +1757,8 @@ class MapMarker {
|
|
|
1776
1757
|
}
|
|
1777
1758
|
else {
|
|
1778
1759
|
this._ngZone.runOutsideAngular(() => {
|
|
1779
|
-
Promise.all([
|
|
1780
|
-
this.
|
|
1781
|
-
importLibrary('marker', 'Marker'),
|
|
1782
|
-
]).then(([map, markerConstrutor]) => {
|
|
1783
|
-
this._initialize(map, markerConstrutor);
|
|
1760
|
+
Promise.all([this._googleMap._resolveMap(), google.maps.importLibrary('marker')]).then(([map, lib]) => {
|
|
1761
|
+
this._initialize(map, lib.Marker);
|
|
1784
1762
|
});
|
|
1785
1763
|
});
|
|
1786
1764
|
}
|
|
@@ -1957,10 +1935,10 @@ class MapMarker {
|
|
|
1957
1935
|
}
|
|
1958
1936
|
}
|
|
1959
1937
|
}
|
|
1960
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
1961
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
1938
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapMarker, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1939
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", 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" }, exportAs: ["mapMarker"], usesOnChanges: true, ngImport: i0 }); }
|
|
1962
1940
|
}
|
|
1963
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
1941
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapMarker, decorators: [{
|
|
1964
1942
|
type: Directive,
|
|
1965
1943
|
args: [{
|
|
1966
1944
|
selector: 'map-marker',
|
|
@@ -2368,10 +2346,10 @@ class MapMarkerClusterer {
|
|
|
2368
2346
|
}
|
|
2369
2347
|
}
|
|
2370
2348
|
}
|
|
2371
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
2372
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.
|
|
2349
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapMarkerClusterer, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2350
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: MapMarkerClusterer, isStandalone: true, selector: "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 }); }
|
|
2373
2351
|
}
|
|
2374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
2352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapMarkerClusterer, decorators: [{
|
|
2375
2353
|
type: Component,
|
|
2376
2354
|
args: [{
|
|
2377
2355
|
selector: 'map-marker-clusterer',
|
|
@@ -2509,11 +2487,8 @@ class MapPolygon {
|
|
|
2509
2487
|
}
|
|
2510
2488
|
else {
|
|
2511
2489
|
this._ngZone.runOutsideAngular(() => {
|
|
2512
|
-
Promise.all([
|
|
2513
|
-
this.
|
|
2514
|
-
importLibrary('maps', 'Polygon'),
|
|
2515
|
-
]).then(([map, polygonConstructor]) => {
|
|
2516
|
-
this._initialize(map, polygonConstructor, options);
|
|
2490
|
+
Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {
|
|
2491
|
+
this._initialize(map, lib.Polygon, options);
|
|
2517
2492
|
});
|
|
2518
2493
|
});
|
|
2519
2494
|
}
|
|
@@ -2607,10 +2582,10 @@ class MapPolygon {
|
|
|
2607
2582
|
}
|
|
2608
2583
|
}
|
|
2609
2584
|
}
|
|
2610
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
2611
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
2585
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapPolygon, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2586
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", 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 }); }
|
|
2612
2587
|
}
|
|
2613
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
2588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapPolygon, decorators: [{
|
|
2614
2589
|
type: Directive,
|
|
2615
2590
|
args: [{
|
|
2616
2591
|
selector: 'map-polygon',
|
|
@@ -2724,11 +2699,8 @@ class MapPolyline {
|
|
|
2724
2699
|
}
|
|
2725
2700
|
else {
|
|
2726
2701
|
this._ngZone.runOutsideAngular(() => {
|
|
2727
|
-
Promise.all([
|
|
2728
|
-
this.
|
|
2729
|
-
importLibrary('maps', 'Polyline'),
|
|
2730
|
-
]).then(([map, polylineConstructor]) => {
|
|
2731
|
-
this._initialize(map, polylineConstructor, options);
|
|
2702
|
+
Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {
|
|
2703
|
+
this._initialize(map, lib.Polyline, options);
|
|
2732
2704
|
});
|
|
2733
2705
|
});
|
|
2734
2706
|
}
|
|
@@ -2815,10 +2787,10 @@ class MapPolyline {
|
|
|
2815
2787
|
}
|
|
2816
2788
|
}
|
|
2817
2789
|
}
|
|
2818
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
2819
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
2790
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapPolyline, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2791
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", 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 }); }
|
|
2820
2792
|
}
|
|
2821
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
2793
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapPolyline, decorators: [{
|
|
2822
2794
|
type: Directive,
|
|
2823
2795
|
args: [{
|
|
2824
2796
|
selector: 'map-polyline',
|
|
@@ -2947,11 +2919,8 @@ class MapRectangle {
|
|
|
2947
2919
|
}
|
|
2948
2920
|
else {
|
|
2949
2921
|
this._ngZone.runOutsideAngular(() => {
|
|
2950
|
-
Promise.all([
|
|
2951
|
-
this.
|
|
2952
|
-
importLibrary('maps', 'Rectangle'),
|
|
2953
|
-
]).then(([map, rectangleConstructor]) => {
|
|
2954
|
-
this._initialize(map, rectangleConstructor, options);
|
|
2922
|
+
Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {
|
|
2923
|
+
this._initialize(map, lib.Rectangle, options);
|
|
2955
2924
|
});
|
|
2956
2925
|
});
|
|
2957
2926
|
}
|
|
@@ -3041,10 +3010,10 @@ class MapRectangle {
|
|
|
3041
3010
|
}
|
|
3042
3011
|
}
|
|
3043
3012
|
}
|
|
3044
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
3045
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
3013
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapRectangle, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3014
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", 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 }); }
|
|
3046
3015
|
}
|
|
3047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
3016
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapRectangle, decorators: [{
|
|
3048
3017
|
type: Directive,
|
|
3049
3018
|
args: [{
|
|
3050
3019
|
selector: 'map-rectangle',
|
|
@@ -3114,11 +3083,8 @@ class MapTrafficLayer {
|
|
|
3114
3083
|
}
|
|
3115
3084
|
else {
|
|
3116
3085
|
this._ngZone.runOutsideAngular(() => {
|
|
3117
|
-
Promise.all([
|
|
3118
|
-
this.
|
|
3119
|
-
importLibrary('maps', 'TrafficLayer'),
|
|
3120
|
-
]).then(([map, layerConstructor]) => {
|
|
3121
|
-
this._initialize(map, layerConstructor, options);
|
|
3086
|
+
Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {
|
|
3087
|
+
this._initialize(map, lib.TrafficLayer, options);
|
|
3122
3088
|
});
|
|
3123
3089
|
});
|
|
3124
3090
|
}
|
|
@@ -3159,10 +3125,10 @@ class MapTrafficLayer {
|
|
|
3159
3125
|
'Please wait for the Traffic Layer to load before trying to interact with it.');
|
|
3160
3126
|
}
|
|
3161
3127
|
}
|
|
3162
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
3163
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
3128
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapTrafficLayer, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3129
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", type: MapTrafficLayer, isStandalone: true, selector: "map-traffic-layer", inputs: { autoRefresh: "autoRefresh" }, outputs: { trafficLayerInitialized: "trafficLayerInitialized" }, exportAs: ["mapTrafficLayer"], ngImport: i0 }); }
|
|
3164
3130
|
}
|
|
3165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
3131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapTrafficLayer, decorators: [{
|
|
3166
3132
|
type: Directive,
|
|
3167
3133
|
args: [{
|
|
3168
3134
|
selector: 'map-traffic-layer',
|
|
@@ -3195,11 +3161,8 @@ class MapTransitLayer {
|
|
|
3195
3161
|
}
|
|
3196
3162
|
else {
|
|
3197
3163
|
this._zone.runOutsideAngular(() => {
|
|
3198
|
-
Promise.all([
|
|
3199
|
-
this.
|
|
3200
|
-
importLibrary('maps', 'TransitLayer'),
|
|
3201
|
-
]).then(([map, layerConstructor]) => {
|
|
3202
|
-
this._initialize(map, layerConstructor);
|
|
3164
|
+
Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {
|
|
3165
|
+
this._initialize(map, lib.TransitLayer);
|
|
3203
3166
|
});
|
|
3204
3167
|
});
|
|
3205
3168
|
}
|
|
@@ -3222,10 +3185,10 @@ class MapTransitLayer {
|
|
|
3222
3185
|
'Please wait for the Transit Layer to load before trying to interact with it.');
|
|
3223
3186
|
}
|
|
3224
3187
|
}
|
|
3225
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
3226
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
3188
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapTransitLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3189
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", type: MapTransitLayer, isStandalone: true, selector: "map-transit-layer", outputs: { transitLayerInitialized: "transitLayerInitialized" }, exportAs: ["mapTransitLayer"], ngImport: i0 }); }
|
|
3227
3190
|
}
|
|
3228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
3191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapTransitLayer, decorators: [{
|
|
3229
3192
|
type: Directive,
|
|
3230
3193
|
args: [{
|
|
3231
3194
|
selector: 'map-transit-layer',
|
|
@@ -3279,9 +3242,9 @@ class MapHeatmapLayer {
|
|
|
3279
3242
|
this._ngZone.runOutsideAngular(() => {
|
|
3280
3243
|
Promise.all([
|
|
3281
3244
|
this._googleMap._resolveMap(),
|
|
3282
|
-
importLibrary('visualization'
|
|
3283
|
-
]).then(([map,
|
|
3284
|
-
this._initialize(map,
|
|
3245
|
+
google.maps.importLibrary('visualization'),
|
|
3246
|
+
]).then(([map, lib]) => {
|
|
3247
|
+
this._initialize(map, lib.HeatmapLayer);
|
|
3285
3248
|
});
|
|
3286
3249
|
});
|
|
3287
3250
|
}
|
|
@@ -3353,10 +3316,10 @@ class MapHeatmapLayer {
|
|
|
3353
3316
|
}
|
|
3354
3317
|
}
|
|
3355
3318
|
}
|
|
3356
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
3357
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
3319
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapHeatmapLayer, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3320
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", type: MapHeatmapLayer, isStandalone: true, selector: "map-heatmap-layer", inputs: { data: "data", options: "options" }, outputs: { heatmapInitialized: "heatmapInitialized" }, exportAs: ["mapHeatmapLayer"], usesOnChanges: true, ngImport: i0 }); }
|
|
3358
3321
|
}
|
|
3359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
3322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapHeatmapLayer, decorators: [{
|
|
3360
3323
|
type: Directive,
|
|
3361
3324
|
args: [{
|
|
3362
3325
|
selector: 'map-heatmap-layer',
|
|
@@ -3394,8 +3357,8 @@ const COMPONENTS = [
|
|
|
3394
3357
|
MapTransitLayer,
|
|
3395
3358
|
];
|
|
3396
3359
|
class GoogleMapsModule {
|
|
3397
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
3398
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.
|
|
3360
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: GoogleMapsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3361
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: GoogleMapsModule, imports: [GoogleMap,
|
|
3399
3362
|
MapBaseLayer,
|
|
3400
3363
|
MapBicyclingLayer,
|
|
3401
3364
|
MapCircle,
|
|
@@ -3426,9 +3389,9 @@ class GoogleMapsModule {
|
|
|
3426
3389
|
MapRectangle,
|
|
3427
3390
|
MapTrafficLayer,
|
|
3428
3391
|
MapTransitLayer] }); }
|
|
3429
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.
|
|
3392
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: GoogleMapsModule }); }
|
|
3430
3393
|
}
|
|
3431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
3394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: GoogleMapsModule, decorators: [{
|
|
3432
3395
|
type: NgModule,
|
|
3433
3396
|
args: [{
|
|
3434
3397
|
imports: COMPONENTS,
|
|
@@ -3470,18 +3433,18 @@ class MapDirectionsService {
|
|
|
3470
3433
|
this._directionsService = new google.maps.DirectionsService();
|
|
3471
3434
|
}
|
|
3472
3435
|
else {
|
|
3473
|
-
return importLibrary('routes'
|
|
3474
|
-
this._directionsService = new
|
|
3436
|
+
return google.maps.importLibrary('routes').then(lib => {
|
|
3437
|
+
this._directionsService = new lib.DirectionsService();
|
|
3475
3438
|
return this._directionsService;
|
|
3476
3439
|
});
|
|
3477
3440
|
}
|
|
3478
3441
|
}
|
|
3479
3442
|
return Promise.resolve(this._directionsService);
|
|
3480
3443
|
}
|
|
3481
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
3482
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
3444
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapDirectionsService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3445
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapDirectionsService, providedIn: 'root' }); }
|
|
3483
3446
|
}
|
|
3484
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
3447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapDirectionsService, decorators: [{
|
|
3485
3448
|
type: Injectable,
|
|
3486
3449
|
args: [{ providedIn: 'root' }]
|
|
3487
3450
|
}], ctorParameters: () => [{ type: i0.NgZone }] });
|
|
@@ -3516,18 +3479,18 @@ class MapGeocoder {
|
|
|
3516
3479
|
this._geocoder = new google.maps.Geocoder();
|
|
3517
3480
|
}
|
|
3518
3481
|
else {
|
|
3519
|
-
return importLibrary('geocoding'
|
|
3520
|
-
this._geocoder = new
|
|
3482
|
+
return google.maps.importLibrary('geocoding').then(lib => {
|
|
3483
|
+
this._geocoder = new lib.Geocoder();
|
|
3521
3484
|
return this._geocoder;
|
|
3522
3485
|
});
|
|
3523
3486
|
}
|
|
3524
3487
|
}
|
|
3525
3488
|
return Promise.resolve(this._geocoder);
|
|
3526
3489
|
}
|
|
3527
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
3528
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
3490
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapGeocoder, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3491
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapGeocoder, providedIn: 'root' }); }
|
|
3529
3492
|
}
|
|
3530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
3493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MapGeocoder, decorators: [{
|
|
3531
3494
|
type: Injectable,
|
|
3532
3495
|
args: [{ providedIn: 'root' }]
|
|
3533
3496
|
}], ctorParameters: () => [{ type: i0.NgZone }] });
|