Create map draw function