<div dir="ltr">



















<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri","sans-serif"">Hello all.</p><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri","sans-serif""><br></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri","sans-serif"">We have set up MapServer using MS4W, running against
IIS.  We have a .map file defined to include about a dozen layers
contained in an ESRI GDB format.<span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri","sans-serif""><span> </span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri","sans-serif"">All of this works fine for the initial load of the map, but
following any data changes, we would like to be able to force a refresh of the
map without having to reload the entire page.  For example, if we simply drag/pan the
map, the layers will refresh with the latest data using the current zoom-level/extents; but we would like to
programmatically refresh the view when data has changed.</p><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri","sans-serif""><br></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri","sans-serif""></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt"><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0)"><font size="2">Up to this point we
have exhausted what we feel are the relevant OpenLayers API calls found at <a href="http://dev.openlayers.org/docs/files/OpenLayers-js.html" style="text-decoration:underline">http://dev.openlayers.org/docs/files/OpenLayers-js.html</a>
(OpenLayers.Layer, OpenLayers.MapServer, & OpenLayers.Map).
Everything that we’ve tried so far seems to simply reload the last cached image.</font></span><span></span></span></p><span style="font-family:arial,sans-serif">

</span><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt"><span style="font-family:arial,sans-serif"><span style="color:rgb(23,54,93)"><span> </span></span></span></p><span style="font-family:arial,sans-serif"><span style="color:rgb(0,0,0)"><font size="2">Another developer working with this has set up buttons that recenter the map to predetermined locations. This is what he has reported.<br></font></span></span><ul><li><span style="color:rgb(0,0,0)"><font size="2"><span style="font-family:arial,sans-serif">Whenever we press one of these, we
create a new OpenLayers.Map object (always with the same extents) and
OpenLayers.Layer.MapServer (always with the same params). Then, we add the
layer to the map object and call setCenter, with the lat-long and scale.<span></span></span></font></span><span style="color:rgb(0,0,0)"><font size="2"><span style="font-family:arial,sans-serif"><span></span></span></font></span></li><li><span style="color:rgb(0,0,0)"><font size="2"><span style="font-family:arial,sans-serif"><span></span></span></font></span><span style="color:rgb(31,73,125)"><span style="color:rgb(0,0,0)"><font size="2"><span style="font-family:arial,sans-serif">If we center on Location A, then
move a map marker (via a separate application) and go to Location B, the marker
is seen in its new position. But if we click the button to recenter back on
Location A, the marker appears to return to its old position. We suspect this
is because the browser or the server is reusing a previously generated map
image. If we reload the entire page, the marker is shown at its correct
position.</span></font></span><span></span></span>

</li></ul><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-family:"Calibri","sans-serif""><font size="2"><span style="color:rgb(0,0,0)"><span><br></span></span></font></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt"><span style="font-family:arial,sans-serif"><font size="2"><span style="color:rgb(0,0,0)"><span>Thank you for any insight/feedback you could provide.<br></span></span></font></span></p><div><span style="font-family:arial,sans-serif"><br></span>





</div><div>Kind Regards.</div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Jerry.<br></div></div>