added setting/retrieving functions in MapsDirManager, adapted MapsActivity to use this logic.