[OWS-4-GeoDSS] [webmap-discuss] Re: Map Width/Height defined
as a percentage in OWS Context
Cameron Shorter
cameron.shorter at gmail.com
Thu Dec 7 18:04:48 EST 2006
Interesting point. I guess this begs the question: "What is the use case
driving the need for a Context document?"
I think that the context is primarilly showing: layers and extent.
"I'm looking in this area, using these layers".
If we change the resolution of the screen used to display, then we
should continue to show the same extent, but the layers would use a
different SLD to cope with the resolution. (This would probably be
handled at the server).
As I think through this further, it seems that Width,Height is not as
important as it used to be, and I suspect that in most clients it should
be ignored during rendering, but prehaps should be manadory in the
creation of a new Context.
Joshua Lieberman wrote:
> A problem with specifying a percentage is that the rendering of the
> map is often scale-dependent, which means pixel scale. If the
> original client (e.g. 20" monitor) is rendering a map window at a
> different size than a client receiving the context document (e.g.
> cellphone), the map details may be completely inapproriate for the
> second client and it would be more appropriate to change the extent
> in order to show the features in the context. Whether or not an
> explicit pixel dimension of the image is given, the context document
> should include some indication of the pixel scale for which it was
> created.
>
> Josh
>
> On Dec 6, 2006, at 5:06 PM, 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
>>>
>>>
>>>
>>
>>_______________________________________________
>>OWS-4-GeoDSS mailing list
>>OWS-4-GeoDSS at opengeospatial.org
>>https://mail.opengeospatial.org/mailman/listinfo/ows-4-geodss
>
>
> _______________________________________________
> OWS-4-GeoDSS mailing list
> OWS-4-GeoDSS at opengeospatial.org
> https://mail.opengeospatial.org/mailman/listinfo/ows-4-geodss
>
--
Cameron Shorter
http://cameron.shorter.net
More information about the Mail_webmap-discuss
mailing list