Commit 106c586f58af16ec82fae3f7387bbad9cbec7d7d
1 parent
90bed603
Exists in
master
and in
7 other branches
--no commit message
Showing
2 changed files
with
13 additions
and
4 deletions
Show diff stats
classesphp/classe_mapa.php
@@ -304,7 +304,8 @@ string - javascript com os parametros | @@ -304,7 +304,8 @@ string - javascript com os parametros | ||
304 | "wmssrs"=>$wmssrs, | 304 | "wmssrs"=>$wmssrs, |
305 | "tiles"=>$tiles, | 305 | "tiles"=>$tiles, |
306 | "temporizador"=>($oLayer->getmetadata("temporizador")), | 306 | "temporizador"=>($oLayer->getmetadata("temporizador")), |
307 | - "permiteogc"=>($oLayer->getmetadata("permiteogc")) | 307 | + "permiteogc"=>($oLayer->getmetadata("permiteogc")), |
308 | + "itembuscarapida"=>($oLayer->getmetadata("itembuscarapida")) | ||
308 | ); | 309 | ); |
309 | } | 310 | } |
310 | } | 311 | } |
ferramentas/buscarapida/index.js
@@ -156,9 +156,17 @@ i3GEObuscaRapida = { | @@ -156,9 +156,17 @@ i3GEObuscaRapida = { | ||
156 | i3GEO.php.buscaRapida(resultado,locaplic,i3GEObuscaRapida.servico,palavra); | 156 | i3GEO.php.buscaRapida(resultado,locaplic,i3GEObuscaRapida.servico,palavra); |
157 | } | 157 | } |
158 | if(temasmapa === true){ | 158 | if(temasmapa === true){ |
159 | - aguarde("block") | ||
160 | - $i("resultadoTemas").innerHTML = "Aguarde..." | ||
161 | - i3GEO.php.buscaRapida(i3GEObuscaRapida.montaResultadoTemas,locaplic,"temas",palavra); | 159 | + try{ |
160 | + var verificaTema = window.parent.i3GEO.arvoreDeCamadas.filtraCamadas("itembuscarapida","","diferente",window.parent.i3GEO.arvoreDeCamadas.CAMADAS); | ||
161 | + if(verificaTema.length === 0){ | ||
162 | + alert("Nenhum tema configurado para busca"); | ||
163 | + return; | ||
164 | + } | ||
165 | + aguarde("block") | ||
166 | + $i("resultadoTemas").innerHTML = "Aguarde..." | ||
167 | + i3GEO.php.buscaRapida(i3GEObuscaRapida.montaResultadoTemas,locaplic,"temas",palavra); | ||
168 | + } | ||
169 | + catch(e){} | ||
162 | } | 170 | } |
163 | }, | 171 | }, |
164 | /* | 172 | /* |