<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Max,<br>
      <br>
      although this is more an OpenLayers related question maybe we can
      help you if you post some more code showing how your map is
      defined and how you try to refresh which kind of layer.<br>
      In general it is correct to use OpenLayers.Layer.redraw
(<a class="moz-txt-link-freetext" href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.redraw">http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.redraw</a>)<br>
      <br>
      Best regards<br>
      Chris<br>
      <br>
      Am 10.01.2014 21:43, schrieb Max Demars:<br>
    </div>
    <blockquote
cite="mid:CAKtuc=-jfnqgs2Rmdd9Jj12Sb8P5aB+kaRA5=hPH3scTM4GtrQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hi,<br>
                <br>
              </div>
              Im trying to refresh or redraw the OpenLayers.map (or some
              of its layers) that is contained inside a Ext.Window
              withtout succes.<br>
              <br>
            </div>
            I thought that calling the OpenLayers.layer.redraw() would
            do the job but no.<br>
            <br>
          </div>
          what is the proper way to do that?<br>
          <br>
        </div>
        <div>This is how I use geoExt to generate the map:<br>
          <br>
          var mapWindow = new Ext.Window({<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title: "Map: Test",<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x: 500,<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; y: 85,<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height: 500,<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: 500,<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layout: "fit",<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; collapsible: true,<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; closable: false,<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bodyBorder: false,<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; shadowOffset: 6,<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items: [{<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xtype: "gx_mappanel",<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map: map,<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; center: new OpenLayers.LonLat(0,0),<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zoom: 0,<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tbar: toolbarItems<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }]<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }).show();<br>
        </div>
        <div><br>
        </div>
        Thank you<br>
        <br>
        Max Demars<br clear="all">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div><br>
                    -- <br>
                    <div dir="ltr">
                      <div>
                        <div>
                          <div>Stack Overflow: <a
                              moz-do-not-send="true"
                              href="http://stackoverflow.com/users/1914034/burton449"
                              target="_blank">http://stackoverflow.com/users/1914034/burton449</a><br>
                          </div>
                        </div>
                        GIS Overflow: <a moz-do-not-send="true"
                          href="http://gis.stackexchange.com/users/14426/burton449"
                          target="_blank">http://gis.stackexchange.com/users/14426/burton449</a><br>
                      </div>
                      LastFm: <a moz-do-not-send="true"
                        href="http://www.lastfm.fr/user/burton449"
                        target="_blank">http://www.lastfm.fr/user/burton449</a><br>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>