Skip to content

Commit 4dfc334

Browse files
committed
feat(google-maps): Add Layer components
Update public api with base layer class.
1 parent c1149af commit 4dfc334

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

tools/public_api_guard/google-maps/google-maps.d.ts

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,31 @@ export declare class GoogleMap implements OnChanges, OnInit, OnDestroy {
5353

5454
export declare class GoogleMapsModule {
5555
static ɵinj: i0.ɵɵInjectorDef<GoogleMapsModule>;
56-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<GoogleMapsModule, [typeof i1.GoogleMap, typeof i2.MapBicyclingLayer, typeof i3.MapCircle, typeof i4.MapGroundOverlay, typeof i5.MapInfoWindow, typeof i6.MapKmlLayer, typeof i7.MapMarker, typeof i8.MapPolygon, typeof i9.MapPolyline, typeof i10.MapRectangle, typeof i11.MapTrafficLayer, typeof i12.MapTransitLayer], never, [typeof i1.GoogleMap, typeof i2.MapBicyclingLayer, typeof i3.MapCircle, typeof i4.MapGroundOverlay, typeof i5.MapInfoWindow, typeof i6.MapKmlLayer, typeof i7.MapMarker, typeof i8.MapPolygon, typeof i9.MapPolyline, typeof i10.MapRectangle, typeof i11.MapTrafficLayer, typeof i12.MapTransitLayer]>;
56+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<GoogleMapsModule, [typeof i1.GoogleMap, typeof i2.MapBaseLayer, typeof i3.MapBicyclingLayer, typeof i4.MapCircle, typeof i5.MapGroundOverlay, typeof i6.MapInfoWindow, typeof i7.MapKmlLayer, typeof i8.MapMarker, typeof i9.MapPolygon, typeof i10.MapPolyline, typeof i11.MapRectangle, typeof i12.MapTrafficLayer, typeof i13.MapTransitLayer], never, [typeof i1.GoogleMap, typeof i2.MapBaseLayer, typeof i3.MapBicyclingLayer, typeof i4.MapCircle, typeof i5.MapGroundOverlay, typeof i6.MapInfoWindow, typeof i7.MapKmlLayer, typeof i8.MapMarker, typeof i9.MapPolygon, typeof i10.MapPolyline, typeof i11.MapRectangle, typeof i12.MapTrafficLayer, typeof i13.MapTransitLayer]>;
5757
}
5858

5959
export interface MapAnchorPoint {
6060
getAnchor(): google.maps.MVCObject;
6161
}
6262

63-
export declare class MapBicyclingLayer implements OnInit, OnDestroy {
64-
bicyclingLayer?: google.maps.BicyclingLayer;
63+
export declare class MapBaseLayer implements OnInit, OnDestroy {
64+
protected readonly _map: GoogleMap;
65+
protected readonly _ngZone: NgZone;
6566
constructor(_map: GoogleMap, _ngZone: NgZone);
67+
protected _initializeObject(): void;
68+
protected _setMap(): void;
69+
protected _unsetMap(): void;
6670
ngOnDestroy(): void;
6771
ngOnInit(): void;
72+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<MapBaseLayer, "map-base-layer", ["mapBaseLayer"], {}, {}, never>;
73+
static ɵfac: i0.ɵɵFactoryDef<MapBaseLayer, never>;
74+
}
75+
76+
export declare class MapBicyclingLayer extends MapBaseLayer {
77+
bicyclingLayer?: google.maps.BicyclingLayer;
78+
protected _initializeObject(): void;
79+
protected _setMap(): void;
80+
protected _unsetMap(): void;
6881
static ɵdir: i0.ɵɵDirectiveDefWithMeta<MapBicyclingLayer, "map-bicycling-layer", ["mapBicyclingLayer"], {}, {}, never>;
6982
static ɵfac: i0.ɵɵFactoryDef<MapBicyclingLayer, never>;
7083
}
@@ -296,11 +309,11 @@ export declare class MapTrafficLayer implements OnInit, OnDestroy {
296309
static ɵfac: i0.ɵɵFactoryDef<MapTrafficLayer, never>;
297310
}
298311

299-
export declare class MapTransitLayer implements OnInit, OnDestroy {
312+
export declare class MapTransitLayer extends MapBaseLayer {
300313
transitLayer?: google.maps.TransitLayer;
301-
constructor(_map: GoogleMap, _ngZone: NgZone);
302-
ngOnDestroy(): void;
303-
ngOnInit(): void;
314+
protected _initializeObject(): void;
315+
protected _setMap(): void;
316+
protected _unsetMap(): void;
304317
static ɵdir: i0.ɵɵDirectiveDefWithMeta<MapTransitLayer, "map-transit-layer", ["mapTransitLayer"], {}, {}, never>;
305318
static ɵfac: i0.ɵɵFactoryDef<MapTransitLayer, never>;
306319
}

0 commit comments

Comments
 (0)