mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-04 20:54:36 +00:00
fix: move heatmapLibrary for google-map-react to props (#42324)
This commit is contained in:
@@ -28,4 +28,4 @@ const options: MapOptions = {
|
||||
],
|
||||
};
|
||||
|
||||
<GoogleMapReact center={center} zoom={3} bootstrapURLKeys={client} options={options} />;
|
||||
<GoogleMapReact center={center} heatmapLibrary={true} zoom={3} bootstrapURLKeys={client} options={options} />;
|
||||
|
||||
2
types/google-map-react/index.d.ts
vendored
2
types/google-map-react/index.d.ts
vendored
@@ -29,7 +29,6 @@ export interface MapOptions {
|
||||
fullscreenControlOptions?: { position: number };
|
||||
gestureHandling?: string;
|
||||
heading?: number;
|
||||
heatmapLibrary?: boolean;
|
||||
keyboardShortcuts?: boolean;
|
||||
mapTypeControl?: boolean;
|
||||
mapTypeControlOptions?: any;
|
||||
@@ -122,6 +121,7 @@ export interface Props {
|
||||
center?: Coords;
|
||||
defaultZoom?: number;
|
||||
zoom?: number;
|
||||
heatmapLibrary?: boolean;
|
||||
hoverDistance?: number;
|
||||
options?: MapOptions | ((maps: Maps) => MapOptions);
|
||||
margin?: any[];
|
||||
|
||||
Reference in New Issue
Block a user