<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Obrigado Hugo,<BR>
&nbsp;<BR>
Fizeste uma boa interpretação daquilo que pretendia. Assim sendo, quer dizer que poderei&nbsp;utilizar igualmente&nbsp;o PostGis/PostgreSQL como base de dados e depois publicar as shapefiles através do Qgis Mapserver export, não é verdade?<BR>&nbsp;<BR>
<DIV>
<DIV id=SkyDrivePlaceholder></DIV>
<HR id=stopSpelling>
Date: Fri, 16 Dec 2011 13:25:54 +0000<BR>Subject: Re: [Portugal] duvidas sobre openlayers<BR>From: hfpmartins@gmail.com<BR>To: portugal@lists.osgeo.org<BR><BR>Olá Luís,
<DIV><BR></DIV>
<DIV>Não percebo bem a tua questão... Mas de acordo com a minha interpretação, o que queres perguntar é se pode publicar shapefiles para depois usares no OpenLayers. Se é isto que perguntas, podes usar o MapServer, GeoServer ou Qgis Mapserver para publicares as tuas shapefiles sobre o formato WMS. Depois no openlayers é só fazeres os pedidos WMS como de costume.</DIV>
<DIV><BR></DIV>
<DIV>Abc,</DIV>
<DIV><BR></DIV>
<DIV>Hugo<BR><BR>
<DIV class=ecxgmail_quote>2011/12/16 Luis Leitão <SPAN dir=ltr>&lt;<A href="mailto:luis_rleitao@hotmail.com">luis_rleitao@hotmail.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; PADDING-LEFT: 1ex" class=ecxgmail_quote>
<DIV>
<DIV dir=ltr>Boas,<BR>&nbsp;<BR>É possivel criar um projecto em Openlayers com&nbsp;shapefiles, tendo por base um WMS?<BR>&nbsp;<BR>
<DIV>
<DIV></DIV>
<HR>
Date: Wed, 14 Dec 2011 23:02:46 +0000<BR>From: <A href="mailto:pedrocostaarma@sapo.pt">pedrocostaarma@sapo.pt</A>
<DIV>
<DIV class=h5><BR>To: <A href="mailto:portugal@lists.osgeo.org">portugal@lists.osgeo.org</A><BR>Subject: Re: [Portugal] duvidas sobre openlayers<BR><BR>Obrigado Hugo.Realmente tem sido um bocado duro para mim uma vez que tenho muito poucas bases a nivel de javascript e html, e por isso demoro muito em coisas dificeis.<BR>Apesar de estudar ainda estou à espera do livro que comprei...<BR>De qualquer maneira não posso desistir...<BR><BR>POr isso obrigado a todos que têm ajudado.<BR><BR>ABraço<BR><BR><BR><BR><BR><BR><BR>On 13-12-2011 18:11, Hugo wrote: 
<BLOCKQUOTE>Olá Pedro, 
<DIV><BR></DIV>
<DIV>Quem espera sempre alcança... neste caso Quem bate com a cabeça mais tarde ou mais cedo resolve...</DIV>
<DIV>A entrada pode ser um pouco dolorosa mas não desistas, pois, o OpenLayers é de facto uma biblioteca espectacular que te permitirá desenvolveres coisas fantásticas à tua medida... E o conhecimento vai ficando. Isso é o mais importante.</DIV>
<DIV><BR></DIV>
<DIV>Boa sorte e um abc,</DIV>
<DIV>Hugo<BR><BR>
<DIV>2011/12/13 Pedro Costa <SPAN dir=ltr>&lt;<A href="mailto:pedrocostaarma@sapo.pt">pedrocostaarma@sapo.pt</A>&gt;</SPAN><BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; PADDING-LEFT: 1ex">
<DIV>Resolvido finalmente...Tive de mudar nessa parte e acertar com a ordem.<BR><BR><BR><BR>PS:Só é pena ter demorado tanto para uma coisa tão simples lol! 
<DIV>
<DIV><BR><BR><BR><BR>On 13-12-2011 15:34, Hugo wrote: 
<BLOCKQUOTE>Se calhar o teu problema são as coordenadas que estás a passar para o OpenaLayers.Bounds. 
<DIV>Confirma que tens as coordenadas certas (por exemplo através do QGis ou do PostGIS)<BR>
<DIV><BR></DIV>
<DIV>Abc,</DIV>
<DIV>Hugo<BR><BR>
<DIV>2011/12/13 Pedro Costa <SPAN dir=ltr>&lt;<A href="mailto:pedrocostaarma@sapo.pt">pedrocostaarma@sapo.pt</A>&gt;</SPAN><BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; PADDING-LEFT: 1ex">
<DIV><BR><BR>Bem agora começa a fazer sentido, tenho de mudar nesta parte:<BR><BR>&nbsp;// set default position<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.zoomToExtent(new OpenLayers.Bounds(5062994.9488977,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -932033.61453498,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -916746.20888068,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 5071594.1145783));<BR><BR><BR>Aqui já muda para uma área 'com alguma coisa'... 
<DIV>
<DIV><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>On 13-12-2011 15:20, Pedro Costa wrote: 
<BLOCKQUOTE><BR>HUgo nesta parte do código:<BR><BR>&nbsp;// set default position<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.zoomToExtent(new OpenLayers.Bounds(880000,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6840000,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 915000,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6860000));<BR><BR>Também tenho de inserir os valores respectivos certo?<BR><BR><BR><BR><BR><BR><BR><BR><BR>On 13-12-2011 15:01, Hugo wrote: 
<BLOCKQUOTE>
<DIV>Olá Pedro,</DIV>
<DIV><BR></DIV>tens que fazer um map.setCenter(); 
<DIV><BR></DIV>
<DIV>Abc,</DIV>
<DIV>Hugo<BR><BR>
<DIV>2011/12/13 Pedro Costa <SPAN dir=ltr>&lt;<A href="mailto:pedrocostaarma@sapo.pt">pedrocostaarma@sapo.pt</A>&gt;</SPAN><BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; PADDING-LEFT: 1ex">
<DIV>Não entendo porque inseri os bounds da area que pretendo e ele abre com uma area completamente diferente... 
<DIV>
<DIV><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>On 13-12-2011 12:57, Hugo wrote: 
<BLOCKQUOTE>Aqui vai. 
<DIV>um abc,</DIV>
<DIV><BR></DIV>
<DIV>Hugo</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>
<DIV>map.events.register('zoomend', map, function(){</DIV>
<DIV><SPAN style="WHITE-SPACE: pre-wrap"></SPAN>var mapProj = map.getProjection();</DIV>
<DIV><SPAN style="WHITE-SPACE: pre-wrap"></SPAN>var mapZoom = map.getZoom();</DIV>
<DIV><SPAN style="WHITE-SPACE: pre-wrap"></SPAN>var mapRes = map.getResolutionForZoom(mapZoom);</DIV>
<DIV><SPAN style="WHITE-SPACE: pre-wrap"></SPAN>if (mapProj == 'EPSG:900913' &amp;&amp; mapRes &gt; 306){</DIV>
<DIV><SPAN style="WHITE-SPACE: pre-wrap"></SPAN>map.zoomToScale(866688.0326989387, true);</DIV>
<DIV><SPAN style="WHITE-SPACE: pre-wrap"></SPAN>}</DIV>
<DIV><SPAN style="WHITE-SPACE: pre-wrap"></SPAN>});</DIV><BR>
<DIV>2011/12/13 Pedro Costa <SPAN dir=ltr>&lt;<A href="mailto:pedrocostaarma@sapo.pt">pedrocostaarma@sapo.pt</A>&gt;</SPAN><BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; PADDING-LEFT: 1ex">
<DIV>&nbsp;&nbsp;&nbsp; Conheces algum exemplo do evento zoomend para eu tentar guiar-me?<BR><BR>Obrigado<BR><BR>Em 13-12-2011 12:45, Hugo escreveu: 
<DIV>
<DIV>
<BLOCKQUOTE>Experimenta adicionar o seguinte às opções do teu mapa: 
<DIV><BR></DIV>
<DIV>restrictedExtent: new OpenLayers.Bounds(.....);</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>De qualquer maneira, qd usas layers comerciais (google, yahoo, etc), tens que definir tb nas layers algumas restrições nomeadamente as resoluções máximas, etc...</DIV>
<DIV><BR></DIV>
<DIV>Ou seja, o facto de definires o restricted extent não vai impedir de veres o mundo inteiro. Então podes fazer como te disse, ou ainda, podes adicionar um evento ao map on zoomend e detectas qual a resolução e se for maior que aquela que tu queres permitir entao fazes um zoom ao mapa... desta forma consegues eliminar a visualização do mundo inteiro.</DIV>
<DIV><BR></DIV>
<DIV>Abc,</DIV>
<DIV><BR></DIV>
<DIV>Hugo</DIV>
<DIV><BR>
<DIV>2011/12/13 Pedro Costa <SPAN dir=ltr>&lt;<A href="mailto:pedrocostaarma@sapo.pt">pedrocostaarma@sapo.pt</A>&gt;</SPAN><BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; PADDING-LEFT: 1ex">
<DIV>Obrigado Hugo.<BR>Eu estou a tentar que o exemplo do link abra na área que pretendo mas está dificil.<BR><BR><A href="http://www.pgrouting.org/docs/ol-workshop/ch05.html" target=_blank>http://www.pgrouting.org/docs/ol-workshop/ch05.html</A><BR><BR>Por exemplo, abri o exemplo original fiz zoom na área que pretendo e com o firebug fiz map.getExtent(). Assim obtive os valores da bounding box que queria penso eu:<BR><BR>bottom <BR>&nbsp;&nbsp;&nbsp; 5066053.4452291&nbsp;&nbsp; <BR>left <BR>&nbsp;&nbsp;&nbsp; -929102.37877511<BR>right <BR>&nbsp;&nbsp;&nbsp; -921458.67594797<BR>top <BR>&nbsp;&nbsp;&nbsp; 5070353.0280693<BR><BR>A seguir inseri na variavel options coloquei estes valores mas mesmo assim não, abre na área que queria.<BR><BR>Alguém tem ideia porquê? 
<DIV>
<DIV><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>On 13-12-2011 12:16, Pedro Costa wrote: 
<BLOCKQUOTE>Pessoal podem ajudar-me no seguinte:<BR>Tenho esta parte do código:<BR><BR><BR><PRE> <SPAN>var</SPAN> <SPAN>options</SPAN> <SPAN>=</SPAN> <SPAN>{</SPAN>

                    <SPAN>projection</SPAN><SPAN>:</SPAN> <SPAN>new</SPAN> <SPAN>OpenLayers</SPAN><SPAN>.</SPAN><SPAN>Projection</SPAN><SPAN>(</SPAN><SPAN>"EPSG:900913"</SPAN><SPAN>),</SPAN>

                    <SPAN></SPAN><SPAN>units</SPAN><SPAN>:</SPAN> <SPAN>"m"</SPAN><SPAN>,</SPAN>

                    <SPAN>numZoomLevels</SPAN><SPAN>:</SPAN> <SPAN>22</SPAN><SPAN>,</SPAN>

                    <SPAN>maxResolution</SPAN><SPAN>:</SPAN> <SPAN>156543.0339</SPAN><SPAN>,</SPAN>

                    <SPAN>maxExtent</SPAN><SPAN>:</SPAN> <SPAN>new</SPAN> <SPAN>OpenLayers</SPAN><SPAN>.</SPAN><SPAN>Bounds</SPAN><SPAN>(</SPAN><SPAN>-</SPAN><SPAN>20037508</SPAN><SPAN>,</SPAN> <SPAN>-</SPAN><SPAN>20037508</SPAN><SPAN>,</SPAN>

                                                     <SPAN>20037508</SPAN><SPAN>,</SPAN> <SPAN>20037508.34</SPAN><SPAN>)</SPAN>

                <SPAN>};</SPAN></PRE><BR>retirado de: <A href="http://www.pgrouting.org/docs/ol-workshop/ch05.html" target=_blank>http://www.pgrouting.org/docs/ol-workshop/ch05.html</A><BR><BR><BR>Significa que o mapa vai estar na projecção 900913. Neste exempo eu quero mudar a area a ser apresentada por isso tenho de mudar o maxExtend certo?<BR>A questão é se eu no geoserver definir o srs como 900913 e calcular, tenho os valores da bounding box,e é so substituir ou estou errado?<BR><BR>Pelo que percebi:<BR><BR><PRE><SPAN>-</SPAN><SPAN>20037508 
(left = min X)


</SPAN><SPAN>-</SPAN><SPAN>20037508</SPAN><SPAN></SPAN>
(bottom = min y)

<SPAN>20037508</SPAN><SPAN></SPAN>

(right = max X)

<SPAN>20037508.34</SPAN><SPAN></SPAN>

(top = max y)


Estou correcto?

obrigado

</PRE><BR><BR><BR><BR><BR><BR>On 13-12-2011 11:11, Jorge de Jesus wrote: 
<BLOCKQUOTE><BR>Oi<BR><BR>Pelo que vejo:<BR><BR>1) Nao tens a proxy instalada para poderes contactar <A href="http://localhost:8080/" target=_blank>http://localhost:8080</A><BR><BR><A href="http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#HowdoIsetupaProxyHost" target=_blank>http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#HowdoIsetupaProxyHost</A><BR><BR>Ate teres a proxy instalada o browser nao vai pedir nada ao servidor...<BR><BR>2) Tens duas vezes projection:<BR>projection: 'map.getProjectionObject()',<BR>reproject: 'True',<BR>projection: new OpenLayers.Projection('4326'),<BR><BR>Geralmente JS usa o ultimo valor definido, portanto estas a usar projeccao 4325<BR><BR>3) O uso correct the OpenLayers.Projection e' com EPSG<BR><BR>OpenLayers.Projection("EPSG:4326")<BR><BR>All the best<BR><BR>Jorge<BR><BR><BR>On 13/12/11 10:50, Pedro Costa wrote: 
<BLOCKQUOTE>Acho que o problema é mesmo os wms que não são reprojectados:<BR>Reparem neste exemplo que fiz:<BR><BR><BR><A href="http://pastebin.com/6i9TEWsH" target=_blank>http://pastebin.com/6i9TEWsH</A><BR><BR><BR><BR>Simplesmente não aparece o wms<BR><BR><BR><BR><BR><BR>On 12-12-2011 09:38, Jorge de Jesus wrote: 
<BLOCKQUOTE><BR>Bons dias<BR><BR><BR>Bem, se tens acerteza que o wms funciona sem problemas&nbsp; sem o layer proprietario, o mais provavel e' que o WMS nao supporta EPSG:900913 ou gera um erro quando fazes o pedido.<BR><BR>No firebug, ve os pedidos feitos pela pagina (Seccao Net) e ve o pedido feito ao servidor e a resposta data.<BR><BR>Por exemplo tenho um sistema que faz o seguinte pedido: <BR><BR><A href="http://localhost/rasdaman/wms.py?LAYERS=rasdamanImage&amp;FORMAT=image/png&amp;TIME=2011-06-20&amp;STRATEGIES=%5bobject%20Object%5d&amp;TRANSPARENT=TRUE&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;SRS=EPSG:900913&amp;BBOX=-6300637.7833253%2c4684889.401321%2c6076045.8348875%2c10359574.380423&amp;WIDTH=1265&amp;HEIGHT=580" target=_blank>http://localhost/rasdaman/wms.py?LAYERS=rasdamanImage&amp;FORMAT=image%2Fpng&amp;TIME=2011-06-20&amp;STRATEGIES=%5Bobject%20Object%5D&amp;TRANSPARENT=TRUE&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;SRS=EPSG%3A900913&amp;BBOX=-6300637.7833253,4684889.401321,6076045.8348875,10359574.380423&amp;WIDTH=1265&amp;HEIGHT=580</A><BR><BR>Experimenta a fazer um pedido ao teu WMS usando SRS=EPSG%3A900913<BR><BR>Jorge<BR><BR><BR>On 10/12/11 15:25, Pedro Costa wrote: 
<BLOCKQUOTE>Jorge,<BR><BR>Sim lembro-me.Esclarece-me só a seguinte dúvida, o que é que o browser não está a conseguir ir buscar na tua opinião mais precisamente? É que ele vai buscar o layer proprietário, os wms é que não. Mas noutros exercicios que efectuei sem o layer proprietario ele ia buscar tudo.<BR><BR><BR>Obrigado<BR>bom fim de semana<BR><BR><BR><BR><BR><BR><BR>On 10-12-2011 09:26, Jorge Mendes de Jesus wrote: 
<BLOCKQUOTE>Oi<BR><BR>Parece tudo em ordem, mas tens um ligeiro problema :)<BR><BR>Lembras-te da explicacao relativa a cross-domain, ou seja podes acecer a outros URLs partir de Javascript ?! Pois quando tens um url com uma porta diferente tens a mesma situacao, ou seja:<BR><BR><A href="http://localhost:8080/" target=_blank>http://localhost:8080</A><BR><BR>è um URL differente e tens de usar uma proxy para buscar os resultados. Eu sempre pensei que mesmo com uma porta difererente nao haveria problemas mas à alguns meses algume teve o mesmo problema e foi tudo explicado no mailing list, acho que podes procurar no google pelos emails mais antigos.<BR><BR>Alem disso, tens o WMS a funcionar a 100%? Experimentaste a fazer uma pedido com EPSG:900913 ??<BR><BR>Jorge<BR><BR><BR>-----Original Message-----<BR>From: <A href="mailto:portugal-bounces@lists.osgeo.org">portugal-bounces@lists.osgeo.org</A> on behalf of Pedro Costa<BR>Sent: Fri 09/12/2011 13:47<BR>To: <A href="mailto:portugal@lists.osgeo.org">portugal@lists.osgeo.org</A><BR>Subject: Re: [Portugal] duvidas sobre openlayers<BR><BR>On 09-12-2011 09:22, Jorge de Jesus wrote:<BR>&gt; No meu caso nao defino a projeccao da camada WMS e o OpenLayers usa a<BR>&gt; projeccao da baseLayer da google para tudo, o meu WMS tem suporte<BR>&gt; nativo para 900913. Acho que devia ter tido mais atencao ao codigo e<BR>&gt; seria mais correcto adicionar a informacao da projeccao<BR>&gt;<BR>&gt; projection: map.getProjectionObject()<BR><BR><BR><BR>Tentei assim:<BR><BR><A href="http://pastebin.com/WLkRVbxu" target=_blank>http://pastebin.com/WLkRVbxu</A><BR><BR><BR>Mas continuo sem sucesso, só é visivel o layer proprietário. Nem sequer<BR>aparece o "+" do layer switcher, não percebo o porquê...<BR><BR>Alguma sugestão?<BR><BR>Obrigado<BR><BR><BR>PS: O firebug tb não detecta nenhum erro.<BR>_______________________________________________<BR>Portugal mailing list<BR><A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A><BR><BR><BR><BR>
<FIELDSET></FIELDSET> <BR><PRE>_______________________________________________
Portugal mailing list
<A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A>
<A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A>
</PRE></BLOCKQUOTE><BR><PRE><FIELDSET></FIELDSET>
_______________________________________________
Portugal mailing list
<A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A>
<A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A>
</PRE></BLOCKQUOTE><BR><BR><PRE>-- 
PGP public key: 0x595FF9D3</PRE><BR>
<HR>
<FONT size=1 face=Arial>Plymouth Marine Laboratory<BR>Registered Office: <BR>Prospect Place<BR>The Hoe<BR>Plymouth PL1 3DH </FONT><BR><FONT size=1 face=Arial>Website: <A href="http://www.pml.ac.uk/" target=_blank>www.pml.ac.uk</A> <BR><A href="http://www.pml.ac.uk/pdf/PMLAR2010.pdf" target=_blank>Click here for PML Annual Review</A> <BR>Registered Charity No. 1091222<BR>PML is a company limited by guarantee<BR>registered in England &amp; Wales<BR>company number 4178503</FONT><BR><FONT color=green size=1 face=Arial>Please think before you print.</FONT><BR>
<HR>
<FONT size=1 face=Arial>This e-mail, its content and any file attachments are confidential.</FONT><BR><FONT size=1 face=Arial>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 <A href="mailto:forinfo@pml.ac.uk">forinfo@pml.ac.uk</A> and then delete the email without making any copies or using it in any other way.</FONT><BR><FONT size=1 face=Arial>The content of this message may contain personal views which are not the views of Plymouth Marine Laboratory unless specifically stated.</FONT><BR><FONT size=1 face=Arial>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><BR>
<HR>
<BR><BR><BR>
<FIELDSET></FIELDSET> <BR><PRE>_______________________________________________
Portugal mailing list
<A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A>
<A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A>
</PRE></BLOCKQUOTE><BR><PRE><FIELDSET></FIELDSET>
_______________________________________________
Portugal mailing list
<A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A>
<A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A>
</PRE></BLOCKQUOTE><BR><BR><PRE>-- 
PGP public key: 0x595FF9D3</PRE><BR>
<HR>
<FONT size=1 face=Arial>Plymouth Marine Laboratory<BR>Registered Office: <BR>Prospect Place<BR>The Hoe<BR>Plymouth PL1 3DH </FONT><BR><FONT size=1 face=Arial>Website: <A href="http://www.pml.ac.uk/" target=_blank>www.pml.ac.uk</A> <BR><A href="http://www.pml.ac.uk/pdf/PMLAR2010.pdf" target=_blank>Click here for PML Annual Review</A> <BR>Registered Charity No. 1091222<BR>PML is a company limited by guarantee<BR>registered in England &amp; Wales<BR>company number 4178503</FONT><BR><FONT color=green size=1 face=Arial>Please think before you print.</FONT><BR>
<HR>
<FONT size=1 face=Arial>This e-mail, its content and any file attachments are confidential.</FONT><BR><FONT size=1 face=Arial>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 <A href="mailto:forinfo@pml.ac.uk">forinfo@pml.ac.uk</A> and then delete the email without making any copies or using it in any other way.</FONT><BR><FONT size=1 face=Arial>The content of this message may contain personal views which are not the views of Plymouth Marine Laboratory unless specifically stated.</FONT><BR><FONT size=1 face=Arial>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><BR>
<HR>
<BR><BR><BR>
<FIELDSET></FIELDSET> <BR><PRE>_______________________________________________
Portugal mailing list
<A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A>
<A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A>
</PRE></BLOCKQUOTE><BR></BLOCKQUOTE><BR></DIV></DIV></DIV><BR>_______________________________________________<BR>Portugal mailing list<BR><A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all>
<DIV><BR></DIV>-- <BR>Hugo Martins<BR>LabNT - ISEGI UNL<BR>Campus de Campolide<BR>1070-312 Lisboa<BR>N 38°43'56.84", W 9°9'35.74"<BR></DIV><BR>
<FIELDSET></FIELDSET> <BR><PRE>_______________________________________________
Portugal mailing list
<A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A>
<A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A>
</PRE></BLOCKQUOTE></DIV></DIV></DIV><BR>_______________________________________________<BR>Portugal mailing list<BR><A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all>
<DIV><BR></DIV>-- <BR>Hugo Martins<BR>LabNT - ISEGI UNL<BR>Campus de Campolide<BR>1070-312 Lisboa<BR>N 38°43'56.84", W 9°9'35.74"<BR></DIV><BR>
<FIELDSET></FIELDSET> <BR><PRE>_______________________________________________
Portugal mailing list
<A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A>
<A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A>
</PRE></BLOCKQUOTE><BR></DIV></DIV></DIV><BR>_______________________________________________<BR>Portugal mailing list<BR><A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all>
<DIV><BR></DIV>-- <BR>Hugo Martins<BR>LabNT - ISEGI UNL<BR>Campus de Campolide<BR>1070-312 Lisboa<BR>N 38°43'56.84", W 9°9'35.74"<BR></DIV><BR>
<FIELDSET></FIELDSET> <BR><PRE>_______________________________________________
Portugal mailing list
<A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A>
<A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A>
</PRE></BLOCKQUOTE><BR></BLOCKQUOTE><BR></DIV></DIV></DIV><BR>_______________________________________________<BR>Portugal mailing list<BR><A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all>
<DIV><BR></DIV>-- <BR>Hugo Martins<BR>LabNT - ISEGI UNL<BR>Campus de Campolide<BR>1070-312 Lisboa<BR>N 38°43'56.84", W 9°9'35.74"<BR></DIV></DIV><BR>
<FIELDSET></FIELDSET> <BR><PRE>_______________________________________________
Portugal mailing list
<A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A>
<A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A>
</PRE></BLOCKQUOTE><BR></DIV></DIV></DIV><BR>_______________________________________________<BR>Portugal mailing list<BR><A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all>
<DIV><BR></DIV>-- <BR>Hugo Martins<BR>LabNT - ISEGI UNL<BR>Campus de Campolide<BR>1070-312 Lisboa<BR>N 38°43'56.84", W 9°9'35.74"<BR></DIV><BR>
<FIELDSET></FIELDSET> <BR><PRE>_______________________________________________
Portugal mailing list
<A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A>
<A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A>
</PRE></BLOCKQUOTE><BR><BR>_______________________________________________ Portugal mailing list <A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A> <A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A></DIV></DIV></DIV></DIV></DIV><BR>_______________________________________________<BR>Portugal mailing list<BR><A href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/portugal" target=_blank>http://lists.osgeo.org/mailman/listinfo/portugal</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all>
<DIV><BR></DIV>-- <BR>Hugo Martins<BR>LabNT - ISEGI UNL<BR>Campus de Campolide<BR>1070-312 Lisboa<BR>N 38°43'56.84", W 9°9'35.74"<BR></DIV><BR>_______________________________________________ Portugal mailing list Portugal@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/portugal</DIV>                                               </div></body>
</html>