From 85854b9bdbd3387bedcdc0347e6a945f5aa7d303 Mon Sep 17 00:00:00 2001 From: Trevor Croxson Date: Tue, 17 Sep 2019 12:36:46 -0500 Subject: [PATCH] @types/react-map-gl: Update GeolocateControl typing with style attribute (#38417) --- types/react-map-gl/index.d.ts | 1 + types/react-map-gl/react-map-gl-tests.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react-map-gl/index.d.ts b/types/react-map-gl/index.d.ts index 7525e54b84..d36f2dfaf0 100644 --- a/types/react-map-gl/index.d.ts +++ b/types/react-map-gl/index.d.ts @@ -335,6 +335,7 @@ export interface GeolocateControlProps extends BaseControlProps { showUserLocation?: boolean; onViewStateChange?: ViewStateChangeHandler; onViewportChange?: ViewportChangeHandler; + style?: React.CSSProperties; } export class GeolocateControl extends BaseControl {} diff --git a/types/react-map-gl/react-map-gl-tests.tsx b/types/react-map-gl/react-map-gl-tests.tsx index 17179fb0d6..2978c53273 100644 --- a/types/react-map-gl/react-map-gl-tests.tsx +++ b/types/react-map-gl/react-map-gl-tests.tsx @@ -40,7 +40,7 @@ class MyMap extends React.Component<{}, State> { ref={this.setRefInteractive} > - + { const {