I didn't know there is a Yoruba town where the Oba is Second to Imam in hierarchy. 
Does the Imam also preside over the affairs of non Muslims? 
That Islam is in the center of the city doesn't mean the city was set up by Islam though.