Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions goldens/google-maps/index.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ export class GoogleMapsModule {
static ɵmod: i0.ɵɵNgModuleDeclaration<GoogleMapsModule, never, [typeof GoogleMap, typeof MapBaseLayer, typeof MapBicyclingLayer, typeof MapCircle, typeof MapDirectionsRenderer, typeof MapGroundOverlay, typeof MapHeatmapLayer, typeof MapInfoWindow, typeof MapKmlLayer, typeof MapMarker, typeof MapAdvancedMarker, typeof DeprecatedMapMarkerClusterer, typeof MapPolygon, typeof MapPolyline, typeof MapRectangle, typeof MapTrafficLayer, typeof MapTransitLayer, typeof MapMarkerClusterer], [typeof GoogleMap, typeof MapBaseLayer, typeof MapBicyclingLayer, typeof MapCircle, typeof MapDirectionsRenderer, typeof MapGroundOverlay, typeof MapHeatmapLayer, typeof MapInfoWindow, typeof MapKmlLayer, typeof MapMarker, typeof MapAdvancedMarker, typeof DeprecatedMapMarkerClusterer, typeof MapPolygon, typeof MapPolyline, typeof MapRectangle, typeof MapTrafficLayer, typeof MapTransitLayer, typeof MapMarkerClusterer]>;
}

// @public
export type HeatmapData = google.maps.MVCArray<google.maps.LatLng | google.maps.visualization.WeightedLocation | google.maps.LatLngLiteral> | (google.maps.LatLng | google.maps.visualization.WeightedLocation | google.maps.LatLngLiteral)[];
// @public @deprecated
export type HeatmapData = any;

// @public
export class MapAdvancedMarker implements OnInit, OnChanges, OnDestroy, MapAnchorPoint, MarkerDirective {
Expand Down Expand Up @@ -532,19 +532,14 @@ export class MapGroundOverlay implements OnInit, OnDestroy {
static ɵfac: i0.ɵɵFactoryDeclaration<MapGroundOverlay, never>;
}

// @public
export class MapHeatmapLayer implements OnInit, OnChanges, OnDestroy {
// @public @deprecated
export class MapHeatmapLayer {
constructor();
set data(data: HeatmapData);
getData(): HeatmapData;
heatmap?: google.maps.visualization.HeatmapLayer;
readonly heatmapInitialized: EventEmitter<google.maps.visualization.HeatmapLayer>;
// (undocumented)
ngOnChanges(changes: SimpleChanges<this>): void;
// (undocumented)
ngOnDestroy(): void;
// (undocumented)
ngOnInit(): void;
set options(options: Partial<google.maps.visualization.HeatmapLayerOptions>);
heatmap?: any;
readonly heatmapInitialized: EventEmitter<any>;
set options(options: any);
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<MapHeatmapLayer, "map-heatmap-layer", ["mapHeatmapLayer"], { "data": { "alias": "data"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "heatmapInitialized": "heatmapInitialized"; }, never, never, true, never>;
// (undocumented)
Expand Down
12 changes: 0 additions & 12 deletions src/dev-app/google-map/google-map-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@
@if (directionsResult) {
<map-directions-renderer [directions]="directionsResult"></map-directions-renderer>
}
@if (isHeatmapDisplayed) {
<map-heatmap-layer
[data]="heatmapData"
[options]="heatmapOptions"></map-heatmap-layer>
}
</google-map>

<p><label>Latitude:</label> {{display?.lat}}</p>
Expand Down Expand Up @@ -206,13 +201,6 @@
</label>
</div>

<div>
<label for="heatmap-layer-checkbox">
Toggle Heatmap Layer
<input type="checkbox" (click)="toggleHeatmapLayerDisplay()">
</label>
</div>

<div>
<label>
Toggle Advanced Marker with custom content
Expand Down
22 changes: 0 additions & 22 deletions src/dev-app/google-map/google-map-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
MapDirectionsRenderer,
MapDirectionsService,
MapGroundOverlay,
MapHeatmapLayer,
MapInfoWindow,
MapKmlLayer,
MapPolygon,
Expand Down Expand Up @@ -73,7 +72,6 @@ let apiLoadingPromise: Promise<unknown> | null = null;
MapCircle,
MapDirectionsRenderer,
MapGroundOverlay,
MapHeatmapLayer,
MapInfoWindow,
MapKmlLayer,
MapMarkerClusterer,
Expand Down Expand Up @@ -108,10 +106,6 @@ export class GoogleMapDemo {
strokeOpacity: 0.8,
};

heatmapData = this._getHeatmapData(5, 1);
heatmapOptions = {radius: 50};
isHeatmapDisplayed = false;

isPolygonDisplayed = false;
polygonOptions: google.maps.PolygonOptions = {
paths: POLYGON_PATH,
Expand Down Expand Up @@ -234,22 +228,6 @@ export class GoogleMapDemo {
}
}

toggleHeatmapLayerDisplay() {
this.isHeatmapDisplayed = !this.isHeatmapDisplayed;
}

private _getHeatmapData(offset: number, increment: number) {
const result: google.maps.LatLngLiteral[] = [];

for (let lat = this.center.lat - offset; lat < this.center.lat + offset; lat += increment) {
for (let lng = this.center.lng - offset; lng < this.center.lng + offset; lng += increment) {
result.push({lat, lng});
}
}

return result;
}

private _loadApi() {
if (this.hasLoaded) {
return;
Expand Down
48 changes: 0 additions & 48 deletions src/google-maps/map-heatmap-layer/README.md

This file was deleted.

167 changes: 0 additions & 167 deletions src/google-maps/map-heatmap-layer/map-heatmap-layer.spec.ts

This file was deleted.

Loading
Loading