diff --git a/mapas/index.js b/mapas/index.js index e3b3536..3036666 100755 --- a/mapas/index.js +++ b/mapas/index.js @@ -45,7 +45,7 @@ function verificaMapa(mapa){ + mapa.ID_MAPA; } //constroi o link para o mapa - if(mapa.LINK != ""){ + if(mapa.LINK == ""){ link = i3GEO.configura.locaplic + "/ms_criamapa.php?temasa=" + mapa.TEMAS + "&layers=" + mapa.LIGADOS; if (mapa.EXTENSAO !== "") { link += "&mapext=" + mapa.EXTENSAO; @@ -59,6 +59,12 @@ function verificaMapa(mapa){ "link": mapa.LINK, "copiado": $trad("copiado",g_traducao_mapas) }); + } else { + links.push({ + "nome": "Default", + "link": mapa.LINK, + "copiado": $trad("copiado",g_traducao_mapas) + }); } // verifica se o mapfile esta salvo no banco // diretamente -- libgit2 0.21.2