Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions modules/react-maplibre/src/components/globe-control.ts
Original file line number Diff line number Diff line change
@@ -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. */
Expand All @@ -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(() => {
Expand Down
2 changes: 1 addition & 1 deletion modules/react-maplibre/src/types/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import type {
TerrainSpecification,
LogoControl,
LogoControlOptions,
GlobeControl,
GlobeControl
} from 'maplibre-gl';

export type {
Expand Down