setting map extent based on screen size