<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <br>
    <br>
    -------- Original Message --------
    <table class="moz-email-headers-table" border="0" cellpadding="0"
      cellspacing="0">
      <tbody>
        <tr>
          <th align="RIGHT" valign="BASELINE" nowrap="nowrap">Subject: </th>
          <td>Re: [Portugal] duvidas sobre openlayers</td>
        </tr>
        <tr>
          <th align="RIGHT" valign="BASELINE" nowrap="nowrap">Date: </th>
          <td>Fri, 02 Dec 2011 09:19:49 +0000</td>
        </tr>
        <tr>
          <th align="RIGHT" valign="BASELINE" nowrap="nowrap">From: </th>
          <td>Jorge de Jesus <a class="moz-txt-link-rfc2396E" href="mailto:jmdj@pml.ac.uk">&lt;jmdj@pml.ac.uk&gt;</a></td>
        </tr>
        <tr>
          <th align="RIGHT" valign="BASELINE" nowrap="nowrap">To: </th>
          <td>Pedro Costa <a class="moz-txt-link-rfc2396E" href="mailto:pedrocostaarma@sapo.pt">&lt;pedrocostaarma@sapo.pt&gt;</a></td>
        </tr>
      </tbody>
    </table>
    <br>
    <br>
    <pre> Boas

A vantagem do firebug eh que podes ver as variaveis e tudo o que tem
dentro, alem disso acho bastante util as funcionalidades NET em que ves
os pedidos feito pelo codigo, do genero ficheiros descarregados ou
pedidos de capas.

Por exemplo, se metes no teu codigo: console.log(wms_ruas) podes ver o
object wms_ruas e tudo o que ele tem dentro.

Se so tens wms_ruas como layer teras de meter isBaseLayer:true  acho que
se so tens uma layer e ela nao e' considerada baseLayer entao o
openlayers nao mostra nada ( alguem pode confirma lo que dice !? Nao
tenho muita certeza)

Tb convem adicional o atributo strategies, experimenta o seguinte:


  var wms_ruas = new OpenLayers.Layer.WMS(
           "ruas",
           <a class="moz-txt-link-rfc2396E" href="http://localhost:8080/geoserver/wms">"http://localhost:8080/geoserver/wms"</a>,
           {'layers': 'postgis:ruas', 'format':'image/png',
'transparent':'true',strategies:[new OpenLayers.Strategy.Fixed()]},
           {'opacity': 1.0, 'isBaseLayer': true, 'visibility': true}
      );

Jorge
</pre>
  <br />
<hr />
<p><font face="Arial" size="1">
Plymouth Marine Laboratory<br />
Registered Office: <br />
Prospect Place<br />
The Hoe<br />
Plymouth  PL1 3DH
</font></p>

<p><font face="Arial" size="1">Website: <a href="http://www.pml.ac.uk">www.pml.ac.uk</a>
<br />
<a href="http://www.pml.ac.uk/pdf/PMLAR2010.pdf">Click here for PML Annual Review</a>
<br />
Registered Charity No. 1091222<br />
PML is a company limited by guarantee<br />
registered in England & Wales<br />
company number 4178503</font></p>

<p><font face="Arial" size="1" color="green">Please think before you print.</font></p>

<hr />

<p><font face="Arial" size="1">This e-mail, its content and any file attachments are confidential.</font></p>

<p><font face="Arial" size="1">If you have received this e-mail in error please do not copy, disclose it to any third party or use the contents or attachments in any way. Please notify the sender by replying to this e-mail or e-mail forinfo@pml.ac.uk and then delete the email without making any copies or using it in any other way.</font></p>

<p><font face="Arial" size="1">The content of this message may contain personal views which are not the views of Plymouth Marine Laboratory unless specifically stated.</font></p>

<p><font face="Arial" size="1">You are reminded that e-mail communications are not secure and may contain viruses. Plymouth Marine Laboratory accepts no liability for any loss or damage which may be caused by viruses.</font></p>

<hr />
<br />
<br /></body>
</html>