@r2don/react-naver-map
Version:
## Introduction
17 lines (16 loc) • 476 B
TypeScript
/// <reference types="navermaps" />
import type { LatLng } from "../interfaces/LatLng";
/**
* A hook to handle map center position
*
* getCenter returns center coords
*
* setCenter takes center coords and sets it as map center
*
* panTo takes center coords and pan to it
*/
export declare const useCenter: () => {
getCenter: () => naver.maps.Coord;
setCenter: ({ latitude, longitude }: LatLng) => void;
panTo: ({ latitude, longitude }: LatLng) => void;
};