Interface for map callback.