API DOCUMENTATION

Center(setCenter)
Sets the center location of the map.

mapInstance.setCenter(LatLng);

Parameter : setCenter

Required Parameter Description
LatLng The centerpoint to set({lat : , lng: })

[ example : setCenter ]
let LatLng = {lat: 37.574674, lng: 126.958004}
mapInstance.setCenter(LatLng);

Center(getCenter)
Gets the center location you set.

mapInstance.getCenter();

Return : getCenter
The map’s geographical center point

[ example : getCenter ] 
mapInstance.getCenter()
return : { lat: 37.574674, lng: 126.958004 }