function to get map max zoom