<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I'm resolved using map.zoomToExtend...<br>
      But now i have another problem...<br>
      <br>
      My code:<br>
      <br>
      <a class="moz-txt-link-freetext" href="http://pastebin.com/zizWku8a">http://pastebin.com/zizWku8a</a><br>
      <br>
      <br>
      <span id="result_box" class="" lang="en"><span class="hps">I want</span>
        <span class="hps">to</span> <span class="hps">add a</span> <span
          class="hps">WMS layer from geosever to</span> <span
          class="hps">map, reprojected to srs 900913 </span><span
          class="hps">but it is not</span> <span class="hps">visible</span>
        <span class="hps">in the</span> <span class="hps">correct</span>
        <span class="hps">area</span><span>.<br>
          I only see osm layer.<br>
        </span> <span class="hps">Does anyone know</span> <span
          class="hps">what I'm</span> <span class="hps">doing wrong</span><span>?</span><br>
        <span class="hps">I know he</span> <span class="hps">is working</span>
        <span class="hps">because I</span> <span class="hps">added</span>
        <span class="hps">the</span> <span class="hps">same wms (non
          reprojected) to other</span> <span class="hps">maps</span><span
          class="hps">, without the</span> <span class="hps">osm</span>
        <span class="hps">layer</span><span class="">, and worked.<br>
          <br>
          Thanks<br>
        </span></span><br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      Em 03-07-2012 09:43, Tobias Reinicke escreveu:<br>
    </div>
    <blockquote
cite="mid:CAPitpCbgJnQUhJU8-fPm5diRFwbsbYZ+Gy7499rM7aM80a11_Q@mail.gmail.com"
      type="cite">You are passing bounds into your setCenter function.
      <div><span style="font-family:Consolas,Menlo,Monaco,'Lucida
          Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera
          Sans
Mono',monospace,serif;font-size:12px;line-height:21px;background-color:rgb(255,255,255)">map.setCenter(extend,
          6);</span> </div>
      <div><br>
      </div>
      <div>What openlayers will do here is take the first x and y coord
        and zoom there (which is prob why it's at the wrong location).</div>
      <div><br>
      </div>
      <div>Use either  map.zoomToExtent(bounds, closest)</div>
      <div>or setCenter passing the correct coordinates.</div>
      <div><br>
      </div>
      <div>See here for proper usage;</div>
      <div><br>
      </div>
      <div><a moz-do-not-send="true"
href="http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html#OpenLayers.Map.zoomToExtent">http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html#OpenLayers.Map.zoomToExtent</a> </div>
      <div><br>
      </div>
      <div>Toby<br>
        <br>
        <div class="gmail_quote">On 3 July 2012 09:23, Pedro Costa <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:pedrocostaarma@sapo.pt" target="_blank">pedrocostaarma@sapo.pt</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            Hi,<br>
            <br>
            I want to transform coordinates in EPSG: 27492 to
             EPSG:900913 and center the map with the result but
            openlayers fixed map in the wrong place.<br>
            <br>
            I did so:<br>
            <br>
            <a moz-do-not-send="true"
              href="http://pastebin.com/Uph7CWtg" target="_blank">http://pastebin.com/Uph7CWtg</a><br>
            <br>
            <br>
            Can anyone help me with that?I'm doing something wrong?<br>
            <br>
            Thanks<br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.osgeo.org" target="_blank">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>
    </blockquote>
    <br>
    <br>
  </body>
</html>