mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
@types/react-map-gl: Update GeolocateControl typing with style attribute (#38417)
This commit is contained in:
Vendored
+1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user