diff --git a/admin/admin.db b/admin/admin.db index fadc8b6..098537d 100644 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/classesjs/classe_arvoredecamadas.js b/classesjs/classe_arvoredecamadas.js index ad774d5..7cdd127 100644 --- a/classesjs/classe_arvoredecamadas.js +++ b/classesjs/classe_arvoredecamadas.js @@ -770,6 +770,17 @@ i3GEO.arvoreDeCamadas = id : "", status : true, flag : true + }, + "ogc" : { + tipo : "tema", + icone : "imagens/oxygen/16x16/application-x-smb-workgroup.png", + classe : "arvCamOgc", + funcao : "i3GEO.tema.dialogo.ogcwindow", + title : "OGC", + dica : "OGC", + id : "", + status : true, + flag : true } }, @@ -1775,6 +1786,10 @@ i3GEO.arvoreDeCamadas = if (tema.download.toLowerCase() === "sim" || tema.download === "" && tema.features.toLowerCase() !== "sim") { this.CONFIGICONES.download.flag = true; } + this.CONFIGICONES.ogc.flag = false; + if (tema.permiteogc.toLowerCase() === "sim") { + this.CONFIGICONES.ogc.flag = true; + } // //monta os icones // diff --git a/classesjs/classe_tema.js b/classesjs/classe_tema.js index 9b1f301..9fe9aad 100644 --- a/classesjs/classe_tema.js +++ b/classesjs/classe_tema.js @@ -45,11 +45,11 @@ i3GEO.tema = TEMPORIZADORESID : {}, /** * Function: ativaFerramentas - * + * * Verifica se uma camada possuĂ­ ferramentas configuradas e que devem ser abertas ao ser adicionada ao mapa - * + * * Parametros: - * + * * {objeto} - objeto camada ver em i3GEO.arvoreDeCamadas.CAMADAS */ ativaFerramentas : function(camada){ @@ -742,6 +742,19 @@ i3GEO.tema = i3GEO.util.dialogoFerramenta("i3GEO.tema.dialogo.download()", "download", "download"); }, /** + * Function: ogcwindow + * + * Abre uma aba no navegador com as opcoes de acesso aos dados de um tema via OGC + * + * Parametros: + * + * {string} - id que identifica o tema no map file. + */ + ogcwindow : function(idtema) { + i3GEO.mapa.ativaTema(idtema); + window.open(i3GEO.configura.locaplic+"/ogc.htm?temaOgc="+idtema); + }, + /** * Function: sld * * Converte a legenda do tema para o formato SLD (utilizado em requisicoes de Web Services OGC) diff --git a/css/geral.css b/css/geral.css index eed727f..e291b75 100644 --- a/css/geral.css +++ b/css/geral.css @@ -235,6 +235,10 @@ Utilizado na janela do buscador INDE background-image: url("../imagens/oxygen/16x16/download.png"); } +.i3GEOarvCamTemaIco .arvCamOgc, .i3GEOarvCamTemaIcoIE .Ogc { + background-image: url("../imagens/oxygen/16x16/application-x-smb-workgroup.png"); +} + .i3GEOarvCamTemaIco .arvCamFonte, .i3GEOarvCamTemaIcoIE .Fonte { background-image: url("../imagens/oxygen/16x16/help-about.png"); } diff --git a/init/index.php b/init/index.php index b71e301..800af49 100755 --- a/init/index.php +++ b/init/index.php @@ -164,7 +164,7 @@ a { text-decoration: none; font-size: 14px; color: #26298D; - outline: none; + outline: doted; } A:hover { diff --git a/js/arvoredecamadas.js b/js/arvoredecamadas.js index dccd73e..2f7d3a5 100644 --- a/js/arvoredecamadas.js +++ b/js/arvoredecamadas.js @@ -770,6 +770,17 @@ i3GEO.arvoreDeCamadas = id : "", status : true, flag : true + }, + "ogc" : { + tipo : "tema", + icone : "imagens/oxygen/16x16/application-x-smb-workgroup.png", + classe : "arvCamOgc", + funcao : "i3GEO.tema.dialogo.ogcwindow", + title : "OGC", + dica : "OGC", + id : "", + status : true, + flag : true } }, @@ -1774,6 +1785,10 @@ i3GEO.arvoreDeCamadas = if (tema.download.toLowerCase() === "sim" || tema.download === "" && tema.features.toLowerCase() !== "sim") { this.CONFIGICONES.download.flag = true; } + this.CONFIGICONES.ogc.flag = false; + if (tema.permiteogc.toLowerCase() === "sim") { + this.CONFIGICONES.ogc.flag = true; + } // //monta os icones // diff --git a/js/tema.js b/js/tema.js index 5e7ddc2..b70067b 100644 --- a/js/tema.js +++ b/js/tema.js @@ -45,11 +45,11 @@ i3GEO.tema = TEMPORIZADORESID : {}, /** * Function: ativaFerramentas - * + * * Verifica se uma camada possuĂ­ ferramentas configuradas e que devem ser abertas ao ser adicionada ao mapa - * + * * Parametros: - * + * * {objeto} - objeto camada ver em i3GEO.arvoreDeCamadas.CAMADAS */ ativaFerramentas : function(camada){ @@ -740,6 +740,19 @@ i3GEO.tema = i3GEO.util.dialogoFerramenta("i3GEO.tema.dialogo.download()", "download", "download"); }, /** + * Function: ogcwindow + * + * Abre uma aba no navegador com as opcoes de acesso aos dados de um tema via OGC + * + * Parametros: + * + * {string} - id que identifica o tema no map file. + */ + ogcwindow : function(idtema) { + i3GEO.mapa.ativaTema(idtema); + window.open(i3GEO.configura.locaplic+"/ogc.htm?temaOgc="+idtema); + }, + /** * Function: sld * * Converte a legenda do tema para o formato SLD (utilizado em requisicoes de Web Services OGC) -- libgit2 0.21.2