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:
Elmano Neto
2020-04-15 13:08:25 -07:00
committed by GitHub
parent c636838b5b
commit ce90df6301
+15
View File
@@ -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> {}