Could you provide a mapscript example to demonstrate the problem? I couldn&#39;t follow exactly why did you require to &quot;have a memory object to track the map extent for seamless display&quot; and how it was implemented. I should also mention that the various operations (like mapObj.draw) may change the extent internally to have the extent width and height to match with the image width and height for instance.<br>
 <br><br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2009/4/6 prak <span dir="ltr">&lt;<a href="mailto:prakashtilhoo@astuntechnology.com">prakashtilhoo@astuntechnology.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi,<br>
<br>
I am working on an application using c# and mapscript_csharp.<br>
<br>
I have the following functions:<br>
<br>
1) DrawMap that just creates an image that binds to picturebox.<br>
<br>
2) Zoom-In/Zoom-out/Recentre/Reset using:<br>
<br>
I also have a memory object to track the map extent for seamless display.<br>
<br>
oIOMapObj.zoomPoint(zoom, new pointObj(oIOMapObj.width/2, oIOMapObj.height/2,0,0), oIOMapObj.width, oIOMapObj.height, oIOMapObj.extent, null);<br>
<br>
I allow user to change any value for the mapObj and after each change I draw the map by calling DrawMap .<br>
<br>
Before calling the DrawMap, I apply the extent to the Map.<br>
<br>
As long as I am changing values, the Map displayed works prefectly.<br>
<br>
However, after calling  Zoom-In/Zoom-out/Recentre/Reset and then DrawMap, the display does show a &#39;zoomed&#39; map.<br>
<br>
But if I now make a value change, e.g. partials, and then call the DrawMap, after setting the extent appropriately, after the geoimageObj = oIOMapObj.draw(), my extent gets changed so that the displayed map gests different displayed extent.<br>

<br>
i.e the MapExtent values gets changed after geoimageObj = oIOMapObj.draw(), whenever there has been a previous oIOMapObj.zoomPoint(zoom, new pointObj(oIOMapObj.width/2, oIOMapObj.height/2,0,0), oIOMapObj.width, oIOMapObj.height, oIOMapObj.extent, null);<br>

<br>
And the displayed maps gets another extent, breaking the continuous from previous one.<br>
<br>
Grateful if anyone could please advise on correction.<br>
<br>
Thank you VERY MUCH !!<br>
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://n2.nabble.com/mapscript_csharp%3A-Map-display-extend-changes-after-changing-a-value-tp2592794p2592794.html" target="_blank">http://n2.nabble.com/mapscript_csharp%3A-Map-display-extend-changes-after-changing-a-value-tp2592794p2592794.html</a><br>

Sent from the Mapserver - Dev mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
</font></blockquote></div><br>