Hi<br><br>I really think getting the client DPI with javasrcipt is not a good idea (if possible). It will lead to weird behaviours and misunderstandings.<br><br>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.<br>
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 &quot;96 seems better to me since most screens have a similar resolution&quot;<br>
<br>Michael<br><br><br><div class="gmail_quote">2011/11/15 Marco Bernasocchi <span dir="ltr">&lt;<a href="mailto:marco@bernawebdesign.ch">marco@bernawebdesign.ch</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 11/15/2011 11:04 AM, Marco Hugentobler wrote:<br><br></div>
html:<br>
    div id=&quot;dpiDiv&quot; style=&quot;height:1in;&quot;<br>
<br>
script:<br>
  alert(document.getElementById(<u></u>&quot;dpiDiv&quot;).offsetHeight+&quot;dpi&quot;);<br>
<br>
Ciao Marco<div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regards,<br></blockquote></div></div></blockquote></div>