Commit 1633ee6f3bc72cfd0b2c4273d199c365c212ea26
1 parent
f9d5991b
Exists in
master
and in
7 other branches
Inclusão do ícone de acesso aos serviços OGC na árvore de camadas
Showing
7 changed files
with
67 additions
and
7 deletions
Show diff stats
admin/admin.db
No preview for this file type
classesjs/classe_arvoredecamadas.js
... | ... | @@ -770,6 +770,17 @@ i3GEO.arvoreDeCamadas = |
770 | 770 | id : "", |
771 | 771 | status : true, |
772 | 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 | 1786 | if (tema.download.toLowerCase() === "sim" || tema.download === "" && tema.features.toLowerCase() !== "sim") { |
1776 | 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 | 1794 | //monta os icones |
1780 | 1795 | // | ... | ... |
classesjs/classe_tema.js
... | ... | @@ -45,11 +45,11 @@ i3GEO.tema = |
45 | 45 | TEMPORIZADORESID : {}, |
46 | 46 | /** |
47 | 47 | * Function: ativaFerramentas |
48 | - * | |
48 | + * | |
49 | 49 | * Verifica se uma camada possuí ferramentas configuradas e que devem ser abertas ao ser adicionada ao mapa |
50 | - * | |
50 | + * | |
51 | 51 | * Parametros: |
52 | - * | |
52 | + * | |
53 | 53 | * {objeto} - objeto camada ver em i3GEO.arvoreDeCamadas.CAMADAS |
54 | 54 | */ |
55 | 55 | ativaFerramentas : function(camada){ |
... | ... | @@ -742,6 +742,19 @@ i3GEO.tema = |
742 | 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 | 758 | * Function: sld |
746 | 759 | * |
747 | 760 | * Converte a legenda do tema para o formato SLD (utilizado em requisicoes de Web Services OGC) | ... | ... |
css/geral.css
... | ... | @@ -235,6 +235,10 @@ Utilizado na janela do buscador INDE |
235 | 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 | 242 | .i3GEOarvCamTemaIco .arvCamFonte, .i3GEOarvCamTemaIcoIE .Fonte { |
239 | 243 | background-image: url("../imagens/oxygen/16x16/help-about.png"); |
240 | 244 | } | ... | ... |
init/index.php
js/arvoredecamadas.js
... | ... | @@ -770,6 +770,17 @@ i3GEO.arvoreDeCamadas = |
770 | 770 | id : "", |
771 | 771 | status : true, |
772 | 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 | 1785 | if (tema.download.toLowerCase() === "sim" || tema.download === "" && tema.features.toLowerCase() !== "sim") { |
1775 | 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 | 1793 | //monta os icones |
1779 | 1794 | // | ... | ... |
js/tema.js
... | ... | @@ -45,11 +45,11 @@ i3GEO.tema = |
45 | 45 | TEMPORIZADORESID : {}, |
46 | 46 | /** |
47 | 47 | * Function: ativaFerramentas |
48 | - * | |
48 | + * | |
49 | 49 | * Verifica se uma camada possuí ferramentas configuradas e que devem ser abertas ao ser adicionada ao mapa |
50 | - * | |
50 | + * | |
51 | 51 | * Parametros: |
52 | - * | |
52 | + * | |
53 | 53 | * {objeto} - objeto camada ver em i3GEO.arvoreDeCamadas.CAMADAS |
54 | 54 | */ |
55 | 55 | ativaFerramentas : function(camada){ |
... | ... | @@ -740,6 +740,19 @@ i3GEO.tema = |
740 | 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 | 756 | * Function: sld |
744 | 757 | * |
745 | 758 | * Converte a legenda do tema para o formato SLD (utilizado em requisicoes de Web Services OGC) | ... | ... |