fix: move heatmapLibrary for google-map-react to props (#42324)

This commit is contained in:
Evan Shortiss
2020-02-18 10:53:24 -08:00
committed by GitHub
parent c935c2b9eb
commit 256ef16541
2 changed files with 2 additions and 2 deletions

View File

@@ -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} />;

View File

@@ -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[];