<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Marc-André,<br>
      <br>
        A request url which is exactly the same as one previously sent
      can (or will?) be prevented from being sent by the browser.<br>
      <br>
        Take a look at the redraw method to see what it does when
      receiving the 'force' parameter to true:<br>
          <a
href="https://github.com/openlayers/openlayers/blob/v2.13.1/lib/OpenLayers/Layer/HTTPRequest.js#L135">https://github.com/openlayers/openlayers/blob/v2.13.1/lib/OpenLayers/Layer/HTTPRequest.js#L135</a><br>
      <br>
        It adds a "_olSalt" parameter equals to Math.random(), which
      make sure that the request url is deferent than the one previously
      sent, thus allowing it to be sent properly.<br>
      <br>
      HTH,<br>
      <br>
      Alexandre<br>
      <br>
      <br>
      On 13-11-04 08:53 AM, Marc-André Trottier wrote:<br>
    </div>
    <blockquote
cite="mid:CAAT161LxdDhOmZJ38Sfuf0rBFb+Rk3W_Paj-dS9yfeRvYaqeWQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">oh ho ! 
        <div>it's working fine. </div>
        <div>i missed this.</div>
        <div>better solution than mine : </div>
        <div><br>
        </div>
        <div>wmsLayer.setVisibility(false);</div>
        <div>
          <div>wmsLayer.setVisibility(true);</div>
        </div>
        <div><br>
        </div>
        <div>now, why 'true' is needed now ? </div>
        <div><br>
        </div>
        <div>
          <div><br>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2013/11/1 Alexandre Dubé <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a>></span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>Hi Marc-André,<br>
                <br>
                  Have you tried forcing the layer to redraw using the
                force parameter ? <br>
                <br>
                <a moz-do-not-send="true"
href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Layer/HTTPRequest-js.html#OpenLayers.Layer.HTTPRequest.redraw"
                  target="_blank">http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Layer/HTTPRequest-js.html#OpenLayers.Layer.HTTPRequest.redraw</a><br>
                <br>
                  wmsLayer.redraw(true);<br>
                <br>
                HTH,<br>
                <br>
                Alexandre
                <div>
                  <div class="h5"><br>
                    <br>
                    <br>
                    On <a moz-do-not-send="true"
                      href="tel:13-10-31%2009" value="+13103109"
                      target="_blank">13-10-31 09</a>:49 AM, Marc-André
                    Trottier wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">i'm using :
                      <div>-OL 2.13.1</div>
                      <div>-a wms layer  </div>
                      <div>-the function redraw().</div>
                      <div><br>
                      </div>
                      <div>the problem : the function don't redraw the
                        layer. I watched the code in
                        lib\OpenLayers\Layer.js line 570 and this launch
                        the trigger 'moveend' of the wms layer but it do
                        not exist.</div>
                      <div><br>
                      </div>
                      <div>is it normal ? </div>
                      <div><br>
                      </div>
                      <div>Marc-André T. </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a>
<a moz-do-not-send="true" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></pre>
                <span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
              <span class="HOEnZb"><font color="#888888"> <br>
                  <br>
                  <pre cols="72">-- 
Alexandre Dubé
Mapgears
<a moz-do-not-send="true" href="http://www.mapgears.com" target="_blank">www.mapgears.com</a>
</pre>
                </font></span></div>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.osgeo.org/mailman/listinfo/openlayers-users"
              target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Alexandre Dubé
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
  </body>
</html>