API DOCUMENTATION

setCenter

Sets the center location of the map.

mapInstance.setCenter(LatLng);

 

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

 

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

getCenter

Gets the center location you set.

mapInstance.getCenter();

 

Return

The map’s geographical center point

 

Example
mapInstance.getCenter()
return : { lat: 37.574674, lng: 126.958004 }