Commit 1633ee6f3bc72cfd0b2c4273d199c365c212ea26

Authored by Edmar Moretti
1 parent f9d5991b

Inclusão do ícone de acesso aos serviços OGC na árvore de camadas

admin/admin.db
No preview for this file type
classesjs/classe_arvoredecamadas.js
@@ -770,6 +770,17 @@ i3GEO.arvoreDeCamadas = @@ -770,6 +770,17 @@ i3GEO.arvoreDeCamadas =
770 id : "", 770 id : "",
771 status : true, 771 status : true,
772 flag : true 772 flag : true
  773 + },
  774 + "ogc" : {
  775 + tipo : "tema",
  776 + icone : "imagens/oxygen/16x16/application-x-smb-workgroup.png",
  777 + classe : "arvCamOgc",
  778 + funcao : "i3GEO.tema.dialogo.ogcwindow",
  779 + title : "OGC",
  780 + dica : "OGC",
  781 + id : "",
  782 + status : true,
  783 + flag : true
773 } 784 }
774 }, 785 },
775 786
@@ -1775,6 +1786,10 @@ i3GEO.arvoreDeCamadas = @@ -1775,6 +1786,10 @@ i3GEO.arvoreDeCamadas =
1775 if (tema.download.toLowerCase() === "sim" || tema.download === "" && tema.features.toLowerCase() !== "sim") { 1786 if (tema.download.toLowerCase() === "sim" || tema.download === "" && tema.features.toLowerCase() !== "sim") {
1776 this.CONFIGICONES.download.flag = true; 1787 this.CONFIGICONES.download.flag = true;
1777 } 1788 }
  1789 + this.CONFIGICONES.ogc.flag = false;
  1790 + if (tema.permiteogc.toLowerCase() === "sim") {
  1791 + this.CONFIGICONES.ogc.flag = true;
  1792 + }
1778 // 1793 //
1779 //monta os icones 1794 //monta os icones
1780 // 1795 //
classesjs/classe_tema.js
@@ -45,11 +45,11 @@ i3GEO.tema = @@ -45,11 +45,11 @@ i3GEO.tema =
45 TEMPORIZADORESID : {}, 45 TEMPORIZADORESID : {},
46 /** 46 /**
47 * Function: ativaFerramentas 47 * Function: ativaFerramentas
48 - * 48 + *
49 * Verifica se uma camada possuí ferramentas configuradas e que devem ser abertas ao ser adicionada ao mapa 49 * Verifica se uma camada possuí ferramentas configuradas e que devem ser abertas ao ser adicionada ao mapa
50 - * 50 + *
51 * Parametros: 51 * Parametros:
52 - * 52 + *
53 * {objeto} - objeto camada ver em i3GEO.arvoreDeCamadas.CAMADAS 53 * {objeto} - objeto camada ver em i3GEO.arvoreDeCamadas.CAMADAS
54 */ 54 */
55 ativaFerramentas : function(camada){ 55 ativaFerramentas : function(camada){
@@ -742,6 +742,19 @@ i3GEO.tema = @@ -742,6 +742,19 @@ i3GEO.tema =
742 i3GEO.util.dialogoFerramenta("i3GEO.tema.dialogo.download()", "download", "download"); 742 i3GEO.util.dialogoFerramenta("i3GEO.tema.dialogo.download()", "download", "download");
743 }, 743 },
744 /** 744 /**
  745 + * Function: ogcwindow
  746 + *
  747 + * Abre uma aba no navegador com as opcoes de acesso aos dados de um tema via OGC
  748 + *
  749 + * Parametros:
  750 + *
  751 + * {string} - id que identifica o tema no map file.
  752 + */
  753 + ogcwindow : function(idtema) {
  754 + i3GEO.mapa.ativaTema(idtema);
  755 + window.open(i3GEO.configura.locaplic+"/ogc.htm?temaOgc="+idtema);
  756 + },
  757 + /**
745 * Function: sld 758 * Function: sld
746 * 759 *
747 * Converte a legenda do tema para o formato SLD (utilizado em requisicoes de Web Services OGC) 760 * Converte a legenda do tema para o formato SLD (utilizado em requisicoes de Web Services OGC)
@@ -235,6 +235,10 @@ Utilizado na janela do buscador INDE @@ -235,6 +235,10 @@ Utilizado na janela do buscador INDE
235 background-image: url("../imagens/oxygen/16x16/download.png"); 235 background-image: url("../imagens/oxygen/16x16/download.png");
236 } 236 }
237 237
  238 +.i3GEOarvCamTemaIco .arvCamOgc, .i3GEOarvCamTemaIcoIE .Ogc {
  239 + background-image: url("../imagens/oxygen/16x16/application-x-smb-workgroup.png");
  240 +}
  241 +
238 .i3GEOarvCamTemaIco .arvCamFonte, .i3GEOarvCamTemaIcoIE .Fonte { 242 .i3GEOarvCamTemaIco .arvCamFonte, .i3GEOarvCamTemaIcoIE .Fonte {
239 background-image: url("../imagens/oxygen/16x16/help-about.png"); 243 background-image: url("../imagens/oxygen/16x16/help-about.png");
240 } 244 }
init/index.php
@@ -164,7 +164,7 @@ a { @@ -164,7 +164,7 @@ a {
164 text-decoration: none; 164 text-decoration: none;
165 font-size: 14px; 165 font-size: 14px;
166 color: #26298D; 166 color: #26298D;
167 - outline: none; 167 + outline: doted;
168 } 168 }
169 169
170 A:hover { 170 A:hover {
js/arvoredecamadas.js
@@ -770,6 +770,17 @@ i3GEO.arvoreDeCamadas = @@ -770,6 +770,17 @@ i3GEO.arvoreDeCamadas =
770 id : "", 770 id : "",
771 status : true, 771 status : true,
772 flag : true 772 flag : true
  773 + },
  774 + "ogc" : {
  775 + tipo : "tema",
  776 + icone : "imagens/oxygen/16x16/application-x-smb-workgroup.png",
  777 + classe : "arvCamOgc",
  778 + funcao : "i3GEO.tema.dialogo.ogcwindow",
  779 + title : "OGC",
  780 + dica : "OGC",
  781 + id : "",
  782 + status : true,
  783 + flag : true
773 } 784 }
774 }, 785 },
775 786
@@ -1774,6 +1785,10 @@ i3GEO.arvoreDeCamadas = @@ -1774,6 +1785,10 @@ i3GEO.arvoreDeCamadas =
1774 if (tema.download.toLowerCase() === "sim" || tema.download === "" && tema.features.toLowerCase() !== "sim") { 1785 if (tema.download.toLowerCase() === "sim" || tema.download === "" && tema.features.toLowerCase() !== "sim") {
1775 this.CONFIGICONES.download.flag = true; 1786 this.CONFIGICONES.download.flag = true;
1776 } 1787 }
  1788 + this.CONFIGICONES.ogc.flag = false;
  1789 + if (tema.permiteogc.toLowerCase() === "sim") {
  1790 + this.CONFIGICONES.ogc.flag = true;
  1791 + }
1777 // 1792 //
1778 //monta os icones 1793 //monta os icones
1779 // 1794 //
@@ -45,11 +45,11 @@ i3GEO.tema = @@ -45,11 +45,11 @@ i3GEO.tema =
45 TEMPORIZADORESID : {}, 45 TEMPORIZADORESID : {},
46 /** 46 /**
47 * Function: ativaFerramentas 47 * Function: ativaFerramentas
48 - * 48 + *
49 * Verifica se uma camada possuí ferramentas configuradas e que devem ser abertas ao ser adicionada ao mapa 49 * Verifica se uma camada possuí ferramentas configuradas e que devem ser abertas ao ser adicionada ao mapa
50 - * 50 + *
51 * Parametros: 51 * Parametros:
52 - * 52 + *
53 * {objeto} - objeto camada ver em i3GEO.arvoreDeCamadas.CAMADAS 53 * {objeto} - objeto camada ver em i3GEO.arvoreDeCamadas.CAMADAS
54 */ 54 */
55 ativaFerramentas : function(camada){ 55 ativaFerramentas : function(camada){
@@ -740,6 +740,19 @@ i3GEO.tema = @@ -740,6 +740,19 @@ i3GEO.tema =
740 i3GEO.util.dialogoFerramenta("i3GEO.tema.dialogo.download()", "download", "download"); 740 i3GEO.util.dialogoFerramenta("i3GEO.tema.dialogo.download()", "download", "download");
741 }, 741 },
742 /** 742 /**
  743 + * Function: ogcwindow
  744 + *
  745 + * Abre uma aba no navegador com as opcoes de acesso aos dados de um tema via OGC
  746 + *
  747 + * Parametros:
  748 + *
  749 + * {string} - id que identifica o tema no map file.
  750 + */
  751 + ogcwindow : function(idtema) {
  752 + i3GEO.mapa.ativaTema(idtema);
  753 + window.open(i3GEO.configura.locaplic+"/ogc.htm?temaOgc="+idtema);
  754 + },
  755 + /**
743 * Function: sld 756 * Function: sld
744 * 757 *
745 * Converte a legenda do tema para o formato SLD (utilizado em requisicoes de Web Services OGC) 758 * Converte a legenda do tema para o formato SLD (utilizado em requisicoes de Web Services OGC)