kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
14 lines • 508 B
JavaScript
import { useEffect, memo } from 'react';
import { applyReactStyle } from '../utils/apply-react-style';
import useControl from './use-control';
function NavigationControl(props) {
const ctrl = useControl(({ mapLib }) => new mapLib.NavigationControl(props), {
position: props.position
});
useEffect(() => {
applyReactStyle(ctrl._container, props.style);
}, [props.style]);
return null;
}
export default memo(NavigationControl);
//# sourceMappingURL=navigation-control.js.map