mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Add Heatmap interface to module google-map-react (#43739)
* add interface heatmap * reset * add interface heatmap * add interface heatmap to google-map-react
This commit is contained in:
Vendored
+15
@@ -115,6 +115,20 @@ export interface ChangeEventValue {
|
||||
size: Size;
|
||||
}
|
||||
|
||||
export interface Position {
|
||||
lat: number;
|
||||
lng: number;
|
||||
weight?: number;
|
||||
}
|
||||
|
||||
export interface Heatmap {
|
||||
positions: Position[];
|
||||
options: {
|
||||
radius?: number;
|
||||
opacity?: number;
|
||||
};
|
||||
}
|
||||
|
||||
export interface Props {
|
||||
bootstrapURLKeys?: BootstrapURLKeys;
|
||||
defaultCenter?: Coords;
|
||||
@@ -149,6 +163,7 @@ export interface Props {
|
||||
yesIWantToUseGoogleMapApiInternals?: boolean;
|
||||
style?: React.HTMLProps<HTMLDivElement>;
|
||||
shouldUnregisterMapOnUnmount?: boolean;
|
||||
heatmap?: Heatmap;
|
||||
}
|
||||
|
||||
export default class GoogleMapReact extends React.Component<Props> {}
|
||||
|
||||
Reference in New Issue
Block a user