Hi everybody,<br><br>I&#39;m not sure if this mailing is the right place to ask, so If this is the not the right one, please point me a proper list to do it.<br><br>I&#39;m developing a printing system in PHP Mapscript, and I&#39;m dealing with the well known &quot;symbols and fonts size after resizing the map&quot; problem. I&#39;ve researched in different mailing list, but I didn&#39;t find a working solution. Someone pointed that it might be possible to automatically look for mapfile elements and resize them with Mapscript. I&#39;m working on this approach.<br>
<br>With this approach I&#39;m getting good results. But now, I need to calculate the scale of the map in 2 different sizes: 1) the scale of the map with the viewport&#39;s size, and 2) the scale of the map with the printing size. <br>
<br>With OpenLayers, the scale at viewport&#39;s size is not problem, once I can get this value with map.getScale(). But, how do I calculate the scale of the same map, but with a different size?<br><br>To make it easy to understand, let&#39;s suppose I have a 800x600 map viewport, and I wanna print this same map with 288 dpi. Since 72dpi is the base value of mapserver, 288dpi = 4 * 72 dpi. So the printing size will be 800*4 x 600*4 = 3200 x 2400. The basic scale value I can get from map.getScale(). But how do I calculate the scale of this map with a 3200 x 2400 size? <br>
<br>I need to work with this value in Mapscript so the symbols and fonts can be properly resized at different sizes/resolutions. The value will be around map.getScale() / 4, but this is not the precise value, and it could lead to some precision errors.<br>
<br>thanks in advance,<br><br>Pedro Simonetti.<br>