Prepare to setting map canvas size