UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

25 lines (24 loc) 860 B
import React from 'react'; type MapViewState = { latitude: number; longitude: number; zoom: number; bearing?: number; pitch?: number; }; import { MapState } from '@kepler.gl/types'; export type MapViewStateContextType = { getInternalViewState: (index?: number) => MapViewState; setInternalViewState: (viewState?: MapViewState, index?: number) => void; }; export declare const MapViewStateContext: React.Context<MapViewStateContextType>; /** * This context provider is used to localize the map view state so * that changes to the map view state do not affect the rest of the app, * mainly to prevent issues we experienced with basemap/deck viewport syncing. */ export declare const MapViewStateContextProvider: ({ mapState, children }: { mapState: MapState; children: React.ReactNode; }) => React.JSX.Element; export {};