Hi list,<br><br>depending on the map extent, the zoomscale function will deliver exactly that value or a value only approaching it.<br><br>This will mean that if a user wants to zoom to 1:50000 with the application, one time he might have a layer visible which has a MAXSCALE of 50000, but after a pan his layer could disappear again ... which is very confusing.
<br><br>For instance, when I use 50000 for the scale, and run zoomscale, I get:<br><br>MAP<br>&nbsp; EXTENT 119638.399789862 500590.444498095 130124.889552138 506876.738093905<br>&nbsp; RESOLUTION 90.710000<br>&nbsp; SIZE 750 450<br><br>
My test script returns the following value for the scale:<br><br>50000<br><br>If I pan one time with my application, I get:<br><br>MAP<br>&nbsp; EXTENT 117457.209919085 501372.738812169 127943.699681677 507659.032408169<br>&nbsp; RESOLUTION 
90.710000<br>
&nbsp; SIZE 750 450<br>
<br>My test script returns the following value for the scale:<br>
<br>
50000.0000015<br><br>which will mean the layer will be invisible/out of scale after the pan.<br><br>The test script is very simple:<br>$oMap = ms_newMapObj(&#39;/data/geoservices/tmp/sess_4709facfb1052/1191837483-2180.map
&#39;);<br>
$oMap-&gt;draw();<br>
echo $oMap-&gt;scale;<br>
<br>Is there any solution for this? Using 5.0.<br><br>Best regards,<br>Bart<br>