code refactoring, add redraw canvas on resize event, disable map scrolling on mobile devices