mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
@types/react-map-gl: Update GeolocateControl typing with style attribute (#38417)
This commit is contained in:
parent
37d97cd78f
commit
85854b9bdb
1
types/react-map-gl/index.d.ts
vendored
1
types/react-map-gl/index.d.ts
vendored
@ -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> {}
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user