Fwd: Re: [Portugal] duvidas sobre openlayers

Jorge de Jesus jmdj pml.ac.uk
Sexta-Feira, 2 de Dezembro de 2011 - 05:02:23 EST



-------- Original Message --------
Subject: 	Re: [Portugal] duvidas sobre openlayers
Date: 	Fri, 02 Dec 2011 09:19:49 +0000
From: 	Jorge de Jesus <jmdj at pml.ac.uk>
To: 	Pedro Costa <pedrocostaarma at sapo.pt>



 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",
           "http://localhost:8080/geoserver/wms",
           {'layers': 'postgis:ruas', 'format':'image/png',
'transparent':'true',strategies:[new OpenLayers.Strategy.Fixed()]},
           {'opacity': 1.0, 'isBaseLayer': true, 'visibility': true}
      );

Jorge


--------------------------------------------------------------------------------
Plymouth Marine Laboratory
 
Registered Office:
Prospect Place 
The Hoe
Plymouth  PL1 3DH
 
Website: www.pml.ac.uk
Click here for PML Annual Review
Registered Charity No. 1091222
PML is a company limited by guarantee
registered in England & Wales
company number 4178503

Please think before you print

--------------------------------------------------------------------------------
This e-mail, its content and any file attachments are confidential.

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 at pml.ac.uk and then delete the email without making any copies or using it in any other way.

The content of this message may contain personal views which are not the views of Plymouth Marine Laboratory unless specifically stated.

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.
--------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/portugal/attachments/20111202/995ea1d3/attachment-0001.html


Mais informações acerca da lista Portugal