Kannan maps in compact spaces