Init map functions.