Resolution of screen {Scanned}

Ed McNierney ed at TOPOZONE.COM
Mon Mar 13 06:48:48 PST 2006


Carola -

You may prefer using screen.availWidth and screen.availHeight, which
give you the "available" height and width, exclusive of user interface
elements you may not be able to hide (the Windows toolbar at the bottom,
for example).

You will find quite a few quirks with these measurements, which may or
may not matter to you.  Older browsers can have trouble with them, newer
ones that aren't Netscape or IE may give you trouble, and
multiple-monitor systems may be confusing.  The simple route will work
95% of the time, but if you care about that other 5% (universities are
notorious for running ancient browsers) you should do some careful
testing.

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242  

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Siki Zoltan
Sent: Monday, March 13, 2006 11:59 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Resolution of screen {Scanned}

Hi,

screen,width and screen.height

Zoltan

On Mon, 13 Mar 2006, Carola Jesch wrote:

> Hi List,
> I have developed an MapServer application with a quite large spatial 
> extent (coastal Louisiana, Alabama, Mississippi). Sometimes our users 
> would like to see the maps as large as possible. I have been thinking 
> about adjusting the display of the maps to the largest possible screen

> extent (full screen with only some buttons like zoom and pan).
> Has anybody of you experience with that? Is there a piece of 
> javascript code to find out the current screen resolution?
> Any tip is welcome.
> 
> Carola
> 
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Carola Jesch
> Wetland Biogeochemistry Institute
> Department of Oceanography and Coastal Science Louisiana State 
> University
> 3191 Energy, Coast & Environment Bldg.
> Baton Rouge, LA,70803
> e-mail: cjesch at cct.lsu.edu
> 



More information about the MapServer-users mailing list