Commit 3da2aa56cd0cff21933bea2b489eb0a658361e56

Authored by Edmar Moretti
1 parent 6dceb8c2

Correção na lista de mapas para usar corretamente o link direto sem parâmetros

Showing 1 changed file with 7 additions and 1 deletions   Show diff stats
mapas/index.js
... ... @@ -45,7 +45,7 @@ function verificaMapa(mapa){
45 45 + mapa.ID_MAPA;
46 46 }
47 47 //constroi o link para o mapa
48   - if(mapa.LINK != ""){
  48 + if(mapa.LINK == ""){
49 49 link = i3GEO.configura.locaplic + "/ms_criamapa.php?temasa=" + mapa.TEMAS + "&layers=" + mapa.LIGADOS;
50 50 if (mapa.EXTENSAO !== "") {
51 51 link += "&mapext=" + mapa.EXTENSAO;
... ... @@ -59,6 +59,12 @@ function verificaMapa(mapa){
59 59 "link": mapa.LINK,
60 60 "copiado": $trad("copiado",g_traducao_mapas)
61 61 });
  62 + } else {
  63 + links.push({
  64 + "nome": "Default",
  65 + "link": mapa.LINK,
  66 + "copiado": $trad("copiado",g_traducao_mapas)
  67 + });
62 68 }
63 69 // verifica se o mapfile esta salvo no banco
64 70 // diretamente
... ...