get map center
added controls for multiple layers