@types/react-map-gl: Update GeolocateControl typing with style attribute (#38417)

This commit is contained in:
Trevor Croxson 2019-09-17 12:36:46 -05:00 committed by Orta
parent 37d97cd78f
commit 85854b9bdb
2 changed files with 2 additions and 1 deletions

View File

@ -335,6 +335,7 @@ export interface GeolocateControlProps extends BaseControlProps {
showUserLocation?: boolean;
onViewStateChange?: ViewStateChangeHandler;
onViewportChange?: ViewportChangeHandler;
style?: React.CSSProperties;
}
export class GeolocateControl extends BaseControl<GeolocateControlProps, HTMLDivElement> {}

View File

@ -40,7 +40,7 @@ class MyMap extends React.Component<{}, State> {
ref={this.setRefInteractive}
>
<FullscreenControl className="test-class" container={document.querySelector('body')} />
<GeolocateControl className="test-class" />
<GeolocateControl className="test-class" style={{ marginTop: "8px" }} />
<CanvasOverlay
redraw={opts => {
const {