diff --git a/classesjs/classe_analise.js b/classesjs/classe_analise.js index 54ba127..98d356a 100644 --- a/classesjs/classe_analise.js +++ b/classesjs/classe_analise.js @@ -62,10 +62,7 @@ i3GEO.analise = { * Ferramenta mapa agrupamento de pontos */ markercluster : function() { - i3GEO.util.dialogoFerramenta( - "i3GEO.analise.dialogo.markercluster()", - "markercluster", - "markercluster"); + i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.markercluster()","markercluster","markercluster","dependencias.php","i3GEOF.markercluster.iniciaJanelaFlutuante()"); }, /** * Function: heatmap diff --git a/ferramentas/markercluster/index.js b/ferramentas/markercluster/index.js index b70394e..0ee71c3 100755 --- a/ferramentas/markercluster/index.js +++ b/ferramentas/markercluster/index.js @@ -57,6 +57,18 @@ i3GEOF.markercluster = { i3GEOF.markercluster.iniciaDicionario(); }, /** + * Template no formato mustache. E preenchido na carga do javascript com o programa dependencias.php + */ + MUSTACHE : "", + /** + * Susbtitutos para o template + */ + mustacheHash : function() { + var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.markercluster.dicionario); + dicionario["locaplic"] = i3GEO.configura.locaplic; + return dicionario; + }, + /** * Function: iniciaDicionario * * Carrega o dicionário e chama a função que inicia a @@ -105,11 +117,7 @@ i3GEOF.markercluster = { * String com o código html */ html : function() { - var ins = ''; - ins += '
'; - ins += '
'; - ins += '
'; - ins += '
'; + var ins = Mustache.render(i3GEOF.markercluster.MUSTACHE, i3GEOF.markercluster.mustacheHash()); return ins; }, /** @@ -123,7 +131,7 @@ i3GEOF.markercluster = { titulo = $trad("x104") + "    "; + + "/ajuda_usuario.php?idcategoria=3&idajuda=122' >   "; cabecalho = function() { }; janela = i3GEO.janela.cria( @@ -166,37 +174,20 @@ i3GEOF.markercluster = { } }, t0 : function() { - var ins = "" - + "

" - + $trad( - 'ajuda', - i3GEOF.markercluster.dicionario) - + "

" - + $trad( - 'ajuda2', - i3GEOF.markercluster.dicionario); i3GEO.util.proximoAnterior( "", "i3GEOF.markercluster.t1()", - ins, + "", "i3GEOFgradeDePontost0", "i3GEOmarkerclusterresultado", true, "i3GEOF.markercluster_rodape"); }, t1 : function() { - var ins = "

" - + $trad( - 'selecionaTema', - i3GEOF.markercluster.dicionario) - + ":"; - ins += "

"; i3GEO.util.proximoAnterior( "i3GEOF.markercluster.t0()", "i3GEOF.markercluster.t2()", - ins, + "", "i3GEOF.markercluster.t1", "i3GEOmarkerclusterresultado", true, @@ -204,28 +195,10 @@ i3GEOF.markercluster = { i3GEOF.markercluster.comboTemasSel(); }, t2 : function() { - var ins = "

" - + $trad( - 'tituloNovaCamada', - i3GEOF.markercluster.dicionario); - ins += "

"; - - ins += "

" - + $trad( - 'raio', - i3GEOF.markercluster.dicionario); - ins += "

"; - - ins += "

" - + $trad( - 'opacidade', - i3GEOF.markercluster.dicionario); - ins += "

"; - i3GEO.util.proximoAnterior( "i3GEOF.markercluster.t1()", "i3GEOF.markercluster.t3()", - ins, + "", "i3GEOF.markercluster.t2", "i3GEOmarkerclusterresultado", true, @@ -233,24 +206,15 @@ i3GEOF.markercluster = { i3GEOF.markercluster.comboItens(); }, t3 : function() { - var b,ins = "

" - + $trad( - 'adicionaTema', - i3GEOF.markercluster.dicionario); - ins += "

"; i3GEO.util.proximoAnterior( "i3GEOF.markercluster.t2()", "", - ins, + "", "i3GEOF.markercluster.t3", "i3GEOmarkerclusterresultado", true, "i3GEOF.markercluster_rodape"); - b = new YAHOO.widget.Button("i3GEOmarkerclusterbotao1", { + var b = new YAHOO.widget.Button("i3GEOmarkerclusterbotao1", { onclick : { fn : i3GEOF.markercluster.criamarkercluster } diff --git a/ferramentas/markercluster/template_mst.html b/ferramentas/markercluster/template_mst.html index bea5652..347fba3 100644 --- a/ferramentas/markercluster/template_mst.html +++ b/ferramentas/markercluster/template_mst.html @@ -1,2 +1,25 @@ -

+
+
+ +

{{{ajuda}}} +

{{{ajuda2}}} +

+
+

{{{selecionaTema}}}: +

+
+
+

{{{tituloNovaCamada}}}

+
+
+

{{{raio}}}

+
+
+

{{{opacidade}}}

+
+
+
+

{{{adicionaTema}}}

+

+
\ No newline at end of file -- libgit2 0.21.2