I havent added any custom code related to the geodirectory. I have hide that map with css as it was not required according to my page structure. You can change the function if you feel there is some issue due to it. But please backup all the data in which you do change and if its not the solution, then revert back the files.