@ismailkimyacioglu
Yes, now you can add a custom control to map.
This require you to write few lines of code.
Here is how you can do this,
/**
* The CenterControl adds a control to the map that recenters the map
* This constructor takes the control DIV as an argument.
* @constructor
*/
function AddCenterControl(controlDiv, map, originalCenter) {
// Set CSS for the control border.
var controlUI = document.createElement('div');
controlUI.style.backgroundColor = '#fff';
controlUI.style.border = '2px solid #fff';
controlUI.style.borderRadius = '3px';
controlUI.style.boxShadow = '0 2px 6px rgba(0,0,0,.3)';
controlUI.style.cursor = 'pointer';
controlUI.style.marginBottom = '22px';
controlUI.style.textAlign = 'center';
controlUI.title = 'Click to recenter the map';
controlDiv.appendChild(controlUI);
// Set CSS for the control interior.
var controlText = document.createElement('div');
controlText.style.color = 'rgb(25,25,25)';
controlText.style.fontFamily = 'Roboto,Arial,sans-serif';
controlText.style.fontSize = '16px';
controlText.style.lineHeight = '38px';
controlText.style.paddingLeft = '5px';
controlText.style.paddingRight = '5px';
controlText.innerHTML = 'Center Map';
controlUI.appendChild(controlText);
// Setup the click event listeners: simply set the map to center.
controlUI.addEventListener('click', function () {
map.setCenter(originalCenter);
});
}
window.addEventListener('agm.loaded', function (e) {
// do something after map is loaded
console.log(window.AGM);
var map = window.AGM.map;
var originalCenter = map.getCenter();
// Create the DIV to hold the control and call the CenterControl()
// constructor passing in this DIV.
var centerControlDiv = document.createElement('div');
var centerControl = new AddCenterControl(centerControlDiv, map, originalCenter);
centerControlDiv.index = 1;
map.controls[google.maps.ControlPosition.TOP_CENTER].push(centerControlDiv);
}, false);
I have not tested it.
Hope this helps.