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 "96 seems better to me since most screens have a similar resolution"<br>
<br>Michael<br><br><br><div class="gmail_quote">2011/11/15 Marco Bernasocchi <span dir="ltr"><<a href="mailto:marco@bernawebdesign.ch">marco@bernawebdesign.ch</a>></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="dpiDiv" style="height:1in;"<br>
<br>
script:<br>
alert(document.getElementById(<u></u>"dpiDiv").offsetHeight+"dpi");<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>