@types/googlemaps
Version:
TypeScript definitions for Google Maps JavaScript API
26 lines (23 loc) • 801 B
TypeScript
declare namespace google.maps.visualization {
class HeatmapLayer extends MVCObject {
constructor(opts?: HeatmapLayerOptions);
getData(): MVCArray<LatLng | WeightedLocation>;
getMap(): Map;
setData(data: MVCArray<LatLng | WeightedLocation> | Array<LatLng | WeightedLocation>): void;
setMap(map: Map | null): void;
setOptions(options: HeatmapLayerOptions): void;
}
interface HeatmapLayerOptions {
data: MVCArray<LatLng | WeightedLocation> | Array<LatLng | WeightedLocation>;
dissipating?: boolean;
gradient?: string[];
map?: Map;
maxIntensity?: number;
opacity?: number;
radius?: number;
}
interface WeightedLocation {
location: LatLng;
weight: number;
}
}