[I3geo] Dúvida criar grupo de menus

Edmar Moretti edmar.moretti em terra.com.br
Quinta Maio 2 07:06:05 PDT 2013


Experimente remover a vírgula no final da última linha:

Onde está assim:

*i3geo.configura.grupoLayers = [*
*        {nome: 
"Saúde",icone:true,dinamico:true,expandido:true,layers:["ame"]},*
*        {nome: 
"Limites",icone:true,dinamico:true,expandido:true,layers:["limiteurbano_utm","limitemunnn"]},*
*{nome:"Outros",icone:true,dinamico:true,expandido:true,layers:["vertices_tmp","estados","mundo","zee"]},
*
*        ];*


deve ficar assim:

*i3geo.configura.grupoLayers = [*
*        {nome: 
"Saúde",icone:true,dinamico:true,expandido:true,layers:["ame"]},*
*        {nome: 
"Limites",icone:true,dinamico:true,expandido:true,layers:["limiteurbano_utm","limitemunnn"]},*
*{nome:"Outros",icone:true,dinamico:true,expandido:true,layers:["vertices_tmp","estados","mundo","zee"]}
*
*        ];*



Em 01-05-2013 23:18, Rafael Dantas escreveu:
> Olá colegas,
>
> segui a dica do blog geoajunior porém não obtive sucesso em criar os 
> grupos. No tutorial diz para adicionar o seguinte em destaque código 
> ao arquivo openlayers.htm
>
> <-----------------------------------------------------------------------------------------------------
> //esconde a logomarca ao finalizar o mapa
> *
> *
> *i3geo.configura.grupoLayers = [*
> *        {nome: 
> "Saúde",icone:true,dinamico:true,expandido:true,layers:["ame"]},*
> *        {nome: 
> "Limites",icone:true,dinamico:true,expandido:true,layers:["limiteurbano_utm","limitemunnn"]},*
> *{nome:"Outros",icone:true,dinamico:true,expandido:true,layers:["vertices_tmp","estados","mundo","zee"]},
> *
> *        ];*
>
> i3GEO.finaliza = function(){
>         $i("i3GEOlogoMarca").style.display = "none";
> i3GEO.mapa.insereDobraPagina("openlayers","../imagens/dobraopenlayers.png");
> }
>
> ----------------------------------------------------------------------------------------------------->
>
> o aplicativo de erro do Chrome me dá o seguinte erro: TypeError: 
> Cannot set property 'grupoLayers' of undefined 
> [http://localhost/i3geo/interface/openlayers.htm?g5cbm1enf2tqamog07dl2k46l1:286 
> <view-source:http://localhost/i3geo/interface/openlayers.htm?g5cbm1enf2tqamog07dl2k46l1>]
>
> Alguém pode ajudar?
>
> Estou usando i3geo 4.6 no Ubuntu 12.10.
>
> saudações
> -- 
>
> Rafael Dantas
>
>
> _______________________________________________
> i3geo mailing list
> i3geo em lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo

-- 

http://edmarmoretti.com.br
http://www.i3geo.com.br
Skype, Gtalk: edmar.moretti
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://lists.osgeo.org/pipermail/i3geo/attachments/20130502/bc1b7996/attachment.html>


More information about the i3geo mailing list