[webmap-discuss] Re: Map Width/Height defined as a percentage in OWS Context

Cameron Shorter cameron.shorter at gmail.com
Wed Dec 6 17:10:22 EST 2006


I assume that anything that is rendering a map has a window or a Pane 
concept which has width/height attributes.

100% = as big as you can make the map using your current display device.
50% = half of the Window width.
etc.

Kralidis,Tom [Burlington] wrote:
> What if the context is not being used by an HTML client? 
> 
> 
>>-----Original Message-----
>>From: Cameron Shorter [mailto:cameron.shorter at gmail.com] 
>>Sent: 06 December, 2006 5:05 PM
>>To: Kralidis,Tom [Burlington]
>>Cc: ows-4-geodss at opengeospatial.org; webmap-discuss at mail.osgeo.org
>>Subject: [webmap-discuss] Re: Map Width/Height defined as a 
>>percentage in OWS Context
>>
>>Width would be set to 100% of the size of the <DIV> (in line 
>>with HTML convensions). The will often be 100% of the browser 
>>window width.
>>
>>Kralidis,Tom [Burlington] wrote:
>>
>>> 
>>>
>>>
>>>
>>>>-----Original Message-----
>>>>From: Cameron Shorter [mailto:cameron.shorter at gmail.com]
>>>>Sent: 06 December, 2006 4:32 PM
>>>>To: 'ows-4-geodss at opengeospatial.org';
>>>>webmap-discuss at mail.osgeo.org; Kralidis,Tom [Burlington]
>>>>Subject: Map Width/Height defined as a percentage in OWS Context
>>>>
>>>>Tom,
>>>>Am I right in understanding that WMC and OWS Context always specify 
>>>>Map Size in fixed coordinates. Eg:
>>>>
>>>>    <Window width="600" height="300"/>
>>>>
>>>Correct.  This was originally from the WMC days.
>>>
>>>
>>>
>>>>With modern webmapping clients these days, maps are set to 
>>
>>fit within 
>>
>>>>the HTML <DIV> element that encloses them.
>>>>So what would work better for the context is to set window size as:
>>>>
>>>>    <Window width="100%" height="100%"/>
>>>>
>>>>The Area of Interest would then need to be calculated to fit the 
>>>>specified BoundingBox. (We need to make the assumption that users 
>>>>don't want to stretch images).
>>>>
>>>
>>>
>>>100% of what?  This is assuming that a client has a width/height in 
>>>place when loading a context.  What if my client purely 
>>
>>derived from 
>>
>>>what a WMC/OWSContext provided in Window/@width and Window/@height ?
>>>
>>>Similarly, we encountered this when working on WMC 1.0.0 (i.e. 
>>>honouring bbox vs. window size).  It was decided that it 
>>
>>would be up 
>>
>>>to the client on whether to recalculate the bbox or adjust 
>>
>>the window 
>>
>>>width/height (i.e. when aspect ratio is off).
>>>
>>>I would see this same behavious (i.e. letting the client decide) as 
>>>can be applied to modern webmapping clients also.
>>>
>>>Does this make sense?
>>>
>>>
>>>
>>>>Could you please add this to your OWS Context issues to 
>>>>address/discuss.
>>>>
>>>
>>>
>>>For sure.  Thanks.
>>>
>>>
>>>
>>>>--
>>>>Cameron Shorter
>>>>http://cameron.shorter.net
>>>>
>>>>
>>>
>>>
>>
>>--
>>Cameron Shorter
>>http://cameron.shorter.net
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: webmap-discuss-unsubscribe at mail.osgeo.org
>>For additional commands, e-mail: webmap-discuss-help at mail.osgeo.org
>>
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webmap-discuss-unsubscribe at mail.osgeo.org
> For additional commands, e-mail: webmap-discuss-help at mail.osgeo.org
> 
> 


-- 
Cameron Shorter
http://cameron.shorter.net




More information about the Mail_webmap-discuss mailing list