UNPKG

731 BTypeScriptView Raw
1declare namespace google.maps.visualization {
2 class HeatmapLayer extends MVCObject {
3 constructor(opts?: HeatmapLayerOptions);
4 getData(): MVCArray<LatLng | WeightedLocation>;
5 getMap(): Map;
6 setData(data: MVCArray<LatLng | WeightedLocation> | LatLng[] | WeightedLocation[]): void;
7 setMap(map: Map | null): void;
8 setOptions(options: HeatmapLayerOptions): void;
9 }
10
11 interface HeatmapLayerOptions {
12 data: any;
13 dissipating?: boolean;
14 gradient?: string[];
15 map?: Map;
16 maxIntensity?: number;
17 opacity?: number;
18 radius?: number;
19 }
20
21 interface WeightedLocation {
22 location: LatLng;
23 weight: number;
24 }
25}