update canvas size and add the swc reference for google map api