Skip to content

Commit 0649e2f

Browse files
committed
refactor(google-maps): remove standalone flag
Removes all of the standalone flags from the Google Maps components.
1 parent 2bbb602 commit 0649e2f

File tree

33 files changed

+5
-38
lines changed

33 files changed

+5
-38
lines changed

src/google-maps/google-map/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {GoogleMap} from '@angular/google-maps';
1212
@Component({
1313
selector: 'google-map-demo',
1414
templateUrl: 'google-map-demo.html',
15-
standalone: true,
1615
imports: [GoogleMap],
1716
})
1817
export class GoogleMapDemo {
@@ -33,7 +32,7 @@ export class GoogleMapDemo {
3332

3433
```html
3534
<!-- google-maps-demo.component.html -->
36-
<google-map
35+
<google-map
3736
height="400px"
3837
width="750px"
3938
[center]="center"

src/google-maps/google-map/google-map.ts

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export const DEFAULT_WIDTH = '500px';
5656
@Component({
5757
selector: 'google-map',
5858
exportAs: 'googleMap',
59-
standalone: true,
6059
changeDetection: ChangeDetectionStrategy.OnPush,
6160
template: '<div class="map-container"></div><ng-content />',
6261
encapsulation: ViewEncapsulation.None,

src/google-maps/map-advanced-marker/map-advanced-marker.ts

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export const DEFAULT_MARKER_OPTIONS = {
4343
@Directive({
4444
selector: 'map-advanced-marker',
4545
exportAs: 'mapAdvancedMarker',
46-
standalone: true,
4746
})
4847
export class MapAdvancedMarker implements OnInit, OnChanges, OnDestroy, MapAnchorPoint {
4948
private readonly _googleMap = inject(GoogleMap);

src/google-maps/map-base-layer.ts

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {GoogleMap} from './google-map/google-map';
1616
@Directive({
1717
selector: 'map-base-layer',
1818
exportAs: 'mapBaseLayer',
19-
standalone: true,
2019
})
2120
export class MapBaseLayer implements OnInit, OnDestroy {
2221
protected readonly _map = inject(GoogleMap);

src/google-maps/map-bicycling-layer/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {GoogleMap, MapBicyclingLayer} from '@angular/google-maps';
1212
@Component({
1313
selector: 'google-map-demo',
1414
templateUrl: 'google-map-demo.html',
15-
standalone: true,
1615
imports: [GoogleMap, MapBicyclingLayer],
1716
})
1817
export class GoogleMapDemo {

src/google-maps/map-bicycling-layer/map-bicycling-layer.ts

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {GoogleMap} from '../google-map/google-map';
2121
@Directive({
2222
selector: 'map-bicycling-layer',
2323
exportAs: 'mapBicyclingLayer',
24-
standalone: true,
2524
})
2625
export class MapBicyclingLayer implements OnInit, OnDestroy {
2726
private _map = inject(GoogleMap);

src/google-maps/map-circle/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import {GoogleMap, MapCircle} from '@angular/google-maps';
1212
@Component({
1313
selector: 'google-map-demo',
1414
templateUrl: 'google-map-demo.html',
15-
standalone: true,
16-
imports: [GoogleMap, MapCircle],
15+
imports: [GoogleMap, MapCircle],
1716
})
1817
export class GoogleMapDemo {
1918
center: google.maps.LatLngLiteral = {lat: 24, lng: 12};
@@ -28,5 +27,5 @@ export class GoogleMapDemo {
2827
<!-- google-maps-demo.component.html -->
2928
<google-map height="400px" width="750px" [center]="center" [zoom]="zoom">
3029
<map-circle [center]="circleCenter" [radius]="radius" />
31-
</google-map>
30+
</google-map>
3231
```

src/google-maps/map-circle/map-circle.ts

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import {MapEventManager} from '../map-event-manager';
3232
@Directive({
3333
selector: 'map-circle',
3434
exportAs: 'mapCircle',
35-
standalone: true,
3635
})
3736
export class MapCircle implements OnInit, OnDestroy {
3837
private readonly _map = inject(GoogleMap);

src/google-maps/map-directions-renderer/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ import {GoogleMap, MapDirectionsRenderer, MapDirectionsService} from '@angular/g
2727
@Component({
2828
selector: 'google-map-demo',
2929
templateUrl: 'google-map-demo.html',
30-
standalone: true,
31-
imports: [GoogleMap, MapDirectionsRenderer],
30+
imports: [GoogleMap, MapDirectionsRenderer],
3231
})
3332
export class GoogleMapDemo {
3433
center: google.maps.LatLngLiteral = {lat: 24, lng: 12};

src/google-maps/map-directions-renderer/map-directions-renderer.ts

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import {MapEventManager} from '../map-event-manager';
3434
@Directive({
3535
selector: 'map-directions-renderer',
3636
exportAs: 'mapDirectionsRenderer',
37-
standalone: true,
3837
})
3938
export class MapDirectionsRenderer implements OnInit, OnChanges, OnDestroy {
4039
private readonly _googleMap = inject(GoogleMap);

src/google-maps/map-geocoder/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import {MapGeocoder} from '@angular/google-maps';
3030
@Component({
3131
selector: 'google-map-demo',
3232
templateUrl: 'google-map-demo.html',
33-
standalone: true,
3433
})
3534
export class GoogleMapDemo {
3635
constructor(geocoder: MapGeocoder) {

src/google-maps/map-ground-overlay/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {GoogleMap, MapGroundOverlay} from '@angular/google-maps';
1212
@Component({
1313
selector: 'google-map-demo',
1414
templateUrl: 'google-map-demo.html',
15-
standalone: true,
1615
imports: [GoogleMap, MapGroundOverlay],
1716
})
1817
export class GoogleMapDemo {

src/google-maps/map-ground-overlay/map-ground-overlay.ts

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {MapEventManager} from '../map-event-manager';
3333
@Directive({
3434
selector: 'map-ground-overlay',
3535
exportAs: 'mapGroundOverlay',
36-
standalone: true,
3736
})
3837
export class MapGroundOverlay implements OnInit, OnDestroy {
3938
private readonly _map = inject(GoogleMap);

src/google-maps/map-heatmap-layer/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {GoogleMap, MapHeatmapLayer} from '@angular/google-maps';
1515
@Component({
1616
selector: 'google-map-demo',
1717
templateUrl: 'google-map-demo.html',
18-
standalone: true,
1918
imports: [GoogleMap, MapHeatmapLayer],
2019
})
2120
export class GoogleMapDemo {

src/google-maps/map-heatmap-layer/map-heatmap-layer.ts

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export type HeatmapData =
3939
@Directive({
4040
selector: 'map-heatmap-layer',
4141
exportAs: 'mapHeatmapLayer',
42-
standalone: true,
4342
})
4443
export class MapHeatmapLayer implements OnInit, OnChanges, OnDestroy {
4544
private readonly _googleMap = inject(GoogleMap);

src/google-maps/map-info-window/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {GoogleMap, MapInfoWindow, MapMarker} from '@angular/google-maps';
1414
@Component({
1515
selector: 'google-map-demo',
1616
templateUrl: 'google-map-demo.html',
17-
standalone: true,
1817
imports: [GoogleMap, MapInfoWindow, MapMarker],
1918
})
2019
export class GoogleMapDemo {

src/google-maps/map-info-window/map-info-window.ts

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import {MapAnchorPoint} from '../map-anchor-point';
3535
@Directive({
3636
selector: 'map-info-window',
3737
exportAs: 'mapInfoWindow',
38-
standalone: true,
3938
host: {'style': 'display: none'},
4039
})
4140
export class MapInfoWindow implements OnInit, OnDestroy {

src/google-maps/map-kml-layer/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {GoogleMap, MapKmlLayer} from '@angular/google-maps';
1212
@Component({
1313
selector: 'google-map-demo',
1414
templateUrl: 'google-map-demo.html',
15-
standalone: true,
1615
imports: [GoogleMap, MapKmlLayer],
1716
})
1817
export class GoogleMapDemo {

src/google-maps/map-kml-layer/map-kml-layer.ts

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {MapEventManager} from '../map-event-manager';
3333
@Directive({
3434
selector: 'map-kml-layer',
3535
exportAs: 'mapKmlLayer',
36-
standalone: true,
3736
})
3837
export class MapKmlLayer implements OnInit, OnDestroy {
3938
private readonly _map = inject(GoogleMap);

src/google-maps/map-marker-clusterer/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {GoogleMap, MapMarker, MapMarkerClusterer} from '@angular/google-maps';
2222
@Component({
2323
selector: 'google-map-demo',
2424
templateUrl: 'google-map-demo.html',
25-
standalone: true,
2625
imports: [GoogleMap, MapMarker, MapMarkerClusterer],
2726
})
2827
export class GoogleMapDemo {
@@ -40,7 +39,7 @@ export class GoogleMapDemo {
4039

4140
```html
4241
<!-- google-map-demo.component.html -->
43-
<google-map
42+
<google-map
4443
height="400px"
4544
width="750px"
4645
[center]="center"

src/google-maps/map-marker-clusterer/map-marker-clusterer.ts

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ declare const MarkerClusterer: typeof MarkerClustererInstance;
5959
selector: 'map-marker-clusterer',
6060
exportAs: 'mapMarkerClusterer',
6161
changeDetection: ChangeDetectionStrategy.OnPush,
62-
standalone: true,
6362
template: '<ng-content/>',
6463
encapsulation: ViewEncapsulation.None,
6564
})

src/google-maps/map-marker/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {GoogleMap, MapMarker} from '@angular/google-maps';
1414
@Component({
1515
selector: 'google-map-demo',
1616
templateUrl: 'google-map-demo.html',
17-
standalone: true,
1817
imports: [GoogleMap, MapMarker],
1918
})
2019
export class GoogleMapDemo {

src/google-maps/map-marker/map-marker.ts

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export const DEFAULT_MARKER_OPTIONS = {
4444
@Directive({
4545
selector: 'map-marker',
4646
exportAs: 'mapMarker',
47-
standalone: true,
4847
})
4948
export class MapMarker implements OnInit, OnChanges, OnDestroy, MapAnchorPoint {
5049
private readonly _googleMap = inject(GoogleMap);

src/google-maps/map-polygon/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {GoogleMap, MapPolygon} from '@angular/google-maps';
1212
@Component({
1313
selector: 'google-map-demo',
1414
templateUrl: 'google-map-demo.html',
15-
standalone: true,
1615
imports: [GoogleMap, MapPolygon],
1716
})
1817
export class GoogleMapDemo {

src/google-maps/map-polygon/map-polygon.ts

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {MapEventManager} from '../map-event-manager';
3333
@Directive({
3434
selector: 'map-polygon',
3535
exportAs: 'mapPolygon',
36-
standalone: true,
3736
})
3837
export class MapPolygon implements OnInit, OnDestroy {
3938
private readonly _map = inject(GoogleMap);

src/google-maps/map-polyline/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {GoogleMap, MapPolyline} from '@angular/google-maps';
1212
@Component({
1313
selector: 'google-map-demo',
1414
templateUrl: 'google-map-demo.html',
15-
standalone: true,
1615
imports: [GoogleMap, MapPolyline],
1716
})
1817
export class GoogleMapDemo {

src/google-maps/map-polyline/map-polyline.ts

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {MapEventManager} from '../map-event-manager';
3333
@Directive({
3434
selector: 'map-polyline',
3535
exportAs: 'mapPolyline',
36-
standalone: true,
3736
})
3837
export class MapPolyline implements OnInit, OnDestroy {
3938
private readonly _map = inject(GoogleMap);

src/google-maps/map-rectangle/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {GoogleMap, MapRectangle} from '@angular/google-maps';
1212
@Component({
1313
selector: 'google-map-demo',
1414
templateUrl: 'google-map-demo.html',
15-
standalone: true,
1615
imports: [GoogleMap, MapRectangle],
1716
})
1817
export class GoogleMapDemo {

src/google-maps/map-rectangle/map-rectangle.ts

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {MapEventManager} from '../map-event-manager';
3333
@Directive({
3434
selector: 'map-rectangle',
3535
exportAs: 'mapRectangle',
36-
standalone: true,
3736
})
3837
export class MapRectangle implements OnInit, OnDestroy {
3938
private readonly _map = inject(GoogleMap);

src/google-maps/map-traffic-layer/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {GoogleMap, MapTrafficLayer} from '@angular/google-maps';
1212
@Component({
1313
selector: 'google-map-demo',
1414
templateUrl: 'google-map-demo.html',
15-
standalone: true,
1615
imports: [GoogleMap, MapTrafficLayer],
1716
})
1817
export class GoogleMapDemo {

src/google-maps/map-traffic-layer/map-traffic-layer.ts

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import {GoogleMap} from '../google-map/google-map';
3232
@Directive({
3333
selector: 'map-traffic-layer',
3434
exportAs: 'mapTrafficLayer',
35-
standalone: true,
3635
})
3736
export class MapTrafficLayer implements OnInit, OnDestroy {
3837
private readonly _map = inject(GoogleMap);

src/google-maps/map-transit-layer/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {GoogleMap, MapTransitLayer} from '@angular/google-maps';
1212
@Component({
1313
selector: 'google-map-demo',
1414
templateUrl: 'google-map-demo.html',
15-
standalone: true,
1615
imports: [GoogleMap, MapTransitLayer],
1716
})
1817
export class GoogleMapDemo {

src/google-maps/map-transit-layer/map-transit-layer.ts

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {GoogleMap} from '../google-map/google-map';
2121
@Directive({
2222
selector: 'map-transit-layer',
2323
exportAs: 'mapTransitLayer',
24-
standalone: true,
2524
})
2625
export class MapTransitLayer implements OnInit, OnDestroy {
2726
private _map = inject(GoogleMap);

0 commit comments

Comments
 (0)