diff --git a/modules/react-maplibre/src/components/globe-control.ts b/modules/react-maplibre/src/components/globe-control.ts index 419c2592e..86e507307 100644 --- a/modules/react-maplibre/src/components/globe-control.ts +++ b/modules/react-maplibre/src/components/globe-control.ts @@ -1,8 +1,8 @@ -import * as React from "react"; -import { useEffect, memo } from "react"; -import { applyReactStyle } from "../utils/apply-react-style"; -import { useControl } from "./use-control"; -import { ControlPosition } from "../types/lib"; +import * as React from 'react'; +import {useEffect, memo} from 'react'; +import {applyReactStyle} from '../utils/apply-react-style'; +import {useControl} from './use-control'; +import {ControlPosition} from '../types/lib'; export type GlobeControlProps = { /** Placement of the control relative to the map. */ @@ -12,8 +12,8 @@ export type GlobeControlProps = { }; function _GlobeControl(props: GlobeControlProps) { - const ctrl = useControl(({ mapLib }) => new mapLib.GlobeControl(props), { - position: props.position, + const ctrl = useControl(({mapLib}) => new mapLib.GlobeControl(props), { + position: props.position }); useEffect(() => { diff --git a/modules/react-maplibre/src/types/lib.ts b/modules/react-maplibre/src/types/lib.ts index 40b36a372..7a58c459e 100644 --- a/modules/react-maplibre/src/types/lib.ts +++ b/modules/react-maplibre/src/types/lib.ts @@ -19,7 +19,7 @@ import type { TerrainSpecification, LogoControl, LogoControlOptions, - GlobeControl, + GlobeControl } from 'maplibre-gl'; export type {