Hi

I really think getting the client DPI with javasrcipt is not a good idea
(if possible). It will lead to weird behaviours and misunderstandings.

My point was only to be consistent with the other map servers (Mapserver
default is 72 dpi) and clients (Openlayers uses by default 72 dpi). This is
why I proposed a way to set the DPI per project.
Since there is a very easy way to tell OpenLayers how to work with 96 dpi
(as described before), this subject is not so important. As Marco
Hugentobler said "96 seems better to me since most screens have a similar
resolution"

Michael


2011/11/15 Marco Bernasocchi <[email protected]>

> On 11/15/2011 11:04 AM, Marco Hugentobler wrote:
>
> html:
>    div id="dpiDiv" style="height:1in;"
>
> script:
>  alert(document.getElementById(**"dpiDiv").offsetHeight+"dpi");
>
> Ciao Marco
>
>  Regards,
>>
>
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to