Commit 9bf4c324f055ee1198c72070c4ad7b7473514440
1 parent
6a57ec97
Exists in
master
and in
7 other branches
Inclusão de parâmetro (metadado) para cancelar efeito de transição de zoom na interface Openlayers
Showing
6 changed files
with
40 additions
and
16 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/js/editormapfile.js
... | ... | @@ -1139,6 +1139,8 @@ function montaEditorMetadados(dados) |
1139 | 1139 | titulo:"Escondido (ESCONDIDO)",id:"",value:dados.escondido,tipo:"text",div:"<div id=cEscondido ></div>"}, |
1140 | 1140 | {ajuda:"Indica se o tema irá ser mostrado na ferramenta de identificação", |
1141 | 1141 | titulo:"Identifica (IDENTIFICA)",id:"",value:dados.identifica,tipo:"text",div:"<div id=cIdentifica ></div>"}, |
1142 | + {ajuda:"Aplica efeitos de transição nas operações de zoom e pan na interface Openlayers", | |
1143 | + titulo:"Efeitos de transição zoom (TRANSITIONEFFECT)",id:"",value:dados.transitioneffect,tipo:"text",div:"<div id=cTransitioneffect ></div>"}, | |
1142 | 1144 | {ajuda:"Nomes das colunas da tabela de atributos do tema, que serão mostradas na ferramenta de identificação. Se for vazio, todas as colunas serão mostradas. A lista de itens deve ser separada por ',' e grafada em caixa alta no caso de shapefile.", |
1143 | 1145 | titulo:"Itens (ITENS)",id:"itens",value:dados.itens,tipo:"text"}, |
1144 | 1146 | {ajuda:"Lista com os 'alias', ou apelidos, para os nomes das colunas listados no metadata 'itens'. Os alias devem ser separados por ',' e seguir a ordem definida em ITENS.", |
... | ... | @@ -1225,6 +1227,10 @@ function montaEditorMetadados(dados) |
1225 | 1227 | temp += core_combosimnao(dados.identifica) |
1226 | 1228 | temp += "</select>" |
1227 | 1229 | $i("cIdentifica").innerHTML = temp |
1230 | + temp = "<select id='transitioneffect' >" | |
1231 | + temp += core_combosimnao(dados.transitioneffect) | |
1232 | + temp += "</select>" | |
1233 | + $i("cTransitioneffect").innerHTML = temp | |
1228 | 1234 | |
1229 | 1235 | var temp = function() |
1230 | 1236 | {salvarDadosEditor('metadados',dados.codigoMap,dados.codigoLayer)} |
... | ... | @@ -1569,7 +1575,7 @@ function salvarDadosEditor(tipo,codigoMap,codigoLayer,indiceClasse,indiceEstilo, |
1569 | 1575 | else |
1570 | 1576 | {alert("Valor de escala incorreto");return;} |
1571 | 1577 | } |
1572 | - var campos = new Array("permitecomentario","cache","iconetema","ltempoformatodata","ltempoiteminicio","ltempoitemfim","ltempoitemtitulo","ltempoitemdescricao","ltempoitemtip","ltempoitemimagem","ltempoitemicone","ltempoitemlink","editorsql","description_template","palletefile","palletestep","arquivodownload","aplicaextensao","classestamanho","classessimbolo","classescor","classesnome","classesitem","mensagem","identifica","extensao","escondido","download","escala","tema","classe","tip","itenslink","itens","itensdesc") | |
1578 | + var campos = new Array("permitecomentario","cache","iconetema","ltempoformatodata","ltempoiteminicio","ltempoitemfim","ltempoitemtitulo","ltempoitemdescricao","ltempoitemtip","ltempoitemimagem","ltempoitemicone","ltempoitemlink","editorsql","description_template","palletefile","palletestep","arquivodownload","aplicaextensao","classestamanho","classessimbolo","classescor","classesnome","classesitem","mensagem","identifica","transitioneffect","extensao","escondido","download","escala","tema","classe","tip","itenslink","itens","itensdesc") | |
1573 | 1579 | var par = "&codigoMap="+codigoMap+"&codigoLayer="+codigoLayer |
1574 | 1580 | var prog = "../php/editormapfile.php?funcao=alterarMetadados" |
1575 | 1581 | } | ... | ... |
admin/php/editormapfile.php
... | ... | @@ -668,6 +668,8 @@ switch (strtoupper($funcao)) |
668 | 668 | |
669 | 669 | identifica |
670 | 670 | |
671 | + transitioneffect | |
672 | + | |
671 | 673 | extensao |
672 | 674 | |
673 | 675 | escondido |
... | ... | @@ -1307,6 +1309,7 @@ function pegaMetadados() |
1307 | 1309 | $dados["escondido"] = $layer->getmetadata("escondido"); |
1308 | 1310 | $dados["extensao"] = $layer->getmetadata("extensao"); |
1309 | 1311 | $dados["identifica"] = $layer->getmetadata("identifica"); |
1312 | + $dados["transitioneffect"] = $layer->getmetadata("transitioneffect"); | |
1310 | 1313 | $dados["mensagem"] = $layer->getmetadata("mensagem"); |
1311 | 1314 | $dados["classesitem"] = $layer->getmetadata("classesitem"); |
1312 | 1315 | $dados["classesnome"] = $layer->getmetadata("classesnome"); |
... | ... | @@ -1338,7 +1341,7 @@ function pegaMetadados() |
1338 | 1341 | } |
1339 | 1342 | function alterarMetadados() |
1340 | 1343 | { |
1341 | - global $permitecomentario,$iconetema,$ltempoformatodata,$ltempoiteminicio,$ltempoitemfim,$ltempoitemtitulo,$ltempoitemdescricao,$ltempoitemtip,$ltempoitemimagem,$ltempoitemicone,$ltempoitemlink,$description_template,$palletestep,$palletefile,$arquivodownload,$codigoMap,$codigoLayer,$locaplic,$aplicaextensao,$classestamanho,$classessimbolo,$classescor,$classesnome,$classesitem,$mensagem,$identifica,$extensao,$escondido,$download,$escala,$tema,$classe,$tip,$itenslink,$itens,$itensdesc,$editorsql,$cache; | |
1344 | + global $permitecomentario,$iconetema,$ltempoformatodata,$ltempoiteminicio,$ltempoitemfim,$ltempoitemtitulo,$ltempoitemdescricao,$ltempoitemtip,$ltempoitemimagem,$ltempoitemicone,$ltempoitemlink,$description_template,$palletestep,$palletefile,$arquivodownload,$codigoMap,$codigoLayer,$locaplic,$aplicaextensao,$classestamanho,$classessimbolo,$classescor,$classesnome,$classesitem,$mensagem,$identifica,$transitioneffect,$extensao,$escondido,$download,$escala,$tema,$classe,$tip,$itenslink,$itens,$itensdesc,$editorsql,$cache; | |
1342 | 1345 | $dados = array(); |
1343 | 1346 | $mapfile = $locaplic."/temas/".$codigoMap.".map"; |
1344 | 1347 | $mapa = ms_newMapObj($mapfile); |
... | ... | @@ -1354,6 +1357,7 @@ function alterarMetadados() |
1354 | 1357 | $layer->setmetadata("escondido",$escondido); |
1355 | 1358 | $layer->setmetadata("extensao",$extensao); |
1356 | 1359 | $layer->setmetadata("identifica",$identifica); |
1360 | + $layer->setmetadata("transitioneffect",$transitioneffect); | |
1357 | 1361 | $layer->setmetadata("mensagem",$mensagem); |
1358 | 1362 | $layer->setmetadata("classesitem",$classesitem); |
1359 | 1363 | $layer->setmetadata("classesnome",$classesnome); |
... | ... | @@ -1735,7 +1739,7 @@ function removeCabecalho($arq,$symbolset=true) |
1735 | 1739 | $teste = str_replace("'","",$teste); |
1736 | 1740 | $teste = str_replace('"',"",$teste); |
1737 | 1741 | $teste = preg_replace('/[\n\r\t ]*/', '', $teste); |
1738 | - $testar = array("KEYIMAGE","TILEINDEX","TILEITEM","SYMBOL","LABELITEM","FILTERITEM","GROUP","ENCODING","TIP","CLASSE","ITENSDESC","CLASSESNOME","ITENSLINK","ESCALA","CLASSESSIMBOLO","MENSAGEM","EXTENSAO","CLASSESITEM","ESCONDIDO","CLASSESCOR","DOWNLOAD","CLASSESTAMANHO","ITENS","TEMA","APLICAEXTENSAO","IDENTIFICA"); | |
1742 | + $testar = array("KEYIMAGE","TILEINDEX","TILEITEM","SYMBOL","LABELITEM","FILTERITEM","GROUP","ENCODING","TIP","CLASSE","ITENSDESC","CLASSESNOME","ITENSLINK","ESCALA","CLASSESSIMBOLO","MENSAGEM","EXTENSAO","CLASSESITEM","ESCONDIDO","CLASSESCOR","DOWNLOAD","CLASSESTAMANHO","ITENS","TEMA","APLICAEXTENSAO","IDENTIFICA","TRANSITIONEFFECT"); | |
1739 | 1743 | $passou = true; |
1740 | 1744 | foreach ($testar as $t) |
1741 | 1745 | {if($teste == $t){$passou = false;}} | ... | ... |
classesjs/classe_interface.js
... | ... | @@ -822,6 +822,7 @@ i3GEO.Interface = { |
822 | 822 | ratio:1, |
823 | 823 | buffer:i3GEO.Interface.openlayers.BUFFER, |
824 | 824 | wrapDateLine:true, |
825 | + transitionEffect: "resize", | |
825 | 826 | eventListeners:{ |
826 | 827 | "loadstart": i3GEO.Interface.openlayers.loadStartLayer, |
827 | 828 | "loadend": i3GEO.Interface.openlayers.loadStopLayer |
... | ... | @@ -838,11 +839,12 @@ i3GEO.Interface = { |
838 | 839 | camada.type === 3 ? opcoes.singleTile = false : opcoes.singleTile = !(i3GEO.Interface.openlayers.TILES); |
839 | 840 | } |
840 | 841 | camada.type === 0 ? opcoes.gutter = 20 : opcoes.gutter = 0; |
842 | + camada.transitioneffect === "nao" ? opcoes.transitionEffect = "null" : opcoes.transitionEffect = "resize"; | |
841 | 843 | } |
842 | 844 | catch(e){} |
843 | 845 | layer = new OpenLayers.Layer.WMS(camada.name, urllayer,{map_imagetype:i3GEO.Interface.OUTPUTFORMAT},opcoes); |
844 | - if(camada.escondido !== "sim") | |
845 | - {layer.transitionEffect ="resize";} | |
846 | + if(camada.escondido === "sim") | |
847 | + {layer.transitionEffect = "null";} | |
846 | 848 | i3geoOL.addLayer(layer); |
847 | 849 | } |
848 | 850 | else | ... | ... |
classesphp/classe_mapa.php
... | ... | @@ -228,6 +228,13 @@ string - javascript com os parametros |
228 | 228 | $ltempo = "nao"; |
229 | 229 | if($oLayer->getmetadata("ltempoformatodata") !== "") |
230 | 230 | {$ltempo = "sim";} |
231 | + // | |
232 | + //verifica se o tema receberá efeito de transição de zoom | |
233 | + // | |
234 | + $transitioneffect = "sim"; | |
235 | + if($oLayer->getmetadata("transitioneffect") == "NAO") | |
236 | + {$transitioneffect = "nao";} | |
237 | + // | |
231 | 238 | $permitecomentario = "nao"; |
232 | 239 | if($oLayer->getmetadata("nomeoriginal") != "" && strtoupper($oLayer->getmetadata("pemitecomentario")) != "NAO") |
233 | 240 | {$permitecomentario = "sim";} |
... | ... | @@ -256,7 +263,8 @@ string - javascript com os parametros |
256 | 263 | "classe"=>($oLayer->getmetadata("classe")), |
257 | 264 | "permitecomentario"=>$permitecomentario, |
258 | 265 | "exttema"=>$exttema, |
259 | - "aplicaextensao"=>$aplicaextensao | |
266 | + "aplicaextensao"=>$aplicaextensao, | |
267 | + "transitioneffect"=>$transitioneffect | |
260 | 268 | ); |
261 | 269 | } |
262 | 270 | } | ... | ... |
temas/locali.map
1 | 1 | MAP |
2 | - FONTSET "c:\ms4w\apache\htdocs\i3geo/symbols/fontes.txt" | |
3 | - SYMBOLSET "c:\ms4w\apache\htdocs\i3geo/symbols/simbolos.sym" | |
2 | + FONTSET "c:\ms4w\apache\htdocs\i3geo/symbols/fontes.txt" | |
3 | + SYMBOLSET "c:\ms4w\apache\htdocs\i3geo/symbols/simbolos.sym" | |
4 | 4 | LAYER |
5 | 5 | CONNECTION "" |
6 | 6 | DATA "c:\ms4w\apache\htdocs\i3geo\aplicmap\dados\locali" |
7 | 7 | METADATA |
8 | + "cache" "" | |
9 | + "TIP" "TIPO,ANOCRIA,NOMELOC" | |
8 | 10 | "LTEMPOITEMIMAGEM" "" |
9 | - "LTEMPOITEMDESCRICAO" "TIPO" | |
10 | 11 | "CLASSE" "SIM" |
11 | - "palletestep" "" | |
12 | + "LTEMPOITEMDESCRICAO" "TIPO" | |
12 | 13 | "LTEMPOITEMINICIO" "ANOCRIA" |
14 | + "palletestep" "" | |
13 | 15 | "LTEMPOITEMTIP" "ANOCRIA" |
14 | - "description_template" "" | |
16 | + "iconetema" "" | |
15 | 17 | "LTEMPOITEMTITULO" "NOMELOC" |
18 | + "description_template" "" | |
16 | 19 | "LTEMPOITEMLINK" "" |
17 | 20 | "palletefile" "" |
18 | 21 | "LTEMPOFORMATODATA" "iso8601" |
22 | + "permitecomentario" "" | |
19 | 23 | "LTEMPOITEMICONE" "" |
20 | 24 | "arquivodownload" "" |
25 | + "transitioneffect" "NAO" | |
21 | 26 | "TEMA" "Localidades" |
22 | 27 | "editorsql" "" |
23 | - "LTEMPOITEMFIM" "" | |
24 | - "TIP" "TIPO,ANOCRIA,NOMELOC" | |
28 | + "LTEMPOITEMFIM" "" | |
25 | 29 | END |
26 | 30 | NAME "locali" |
27 | 31 | STATUS OFF |
... | ... | @@ -34,9 +38,9 @@ MAP |
34 | 38 | STYLE |
35 | 39 | ANGLE 360 |
36 | 40 | COLOR 209 36 9 |
37 | - OPACITY 100 | |
38 | 41 | SIZE 4 |
39 | 42 | SYMBOL "ponto" |
43 | + WIDTH 1 | |
40 | 44 | END |
41 | 45 | END |
42 | 46 | CLASS |
... | ... | @@ -45,9 +49,9 @@ MAP |
45 | 49 | STYLE |
46 | 50 | ANGLE 360 |
47 | 51 | COLOR 62 9 41 |
48 | - OPACITY 100 | |
49 | 52 | SIZE 6 |
50 | 53 | SYMBOL "ponto" |
54 | + WIDTH 1 | |
51 | 55 | END |
52 | 56 | END |
53 | 57 | CLASS |
... | ... | @@ -56,9 +60,9 @@ MAP |
56 | 60 | STYLE |
57 | 61 | ANGLE 360 |
58 | 62 | COLOR 112 203 244 |
59 | - OPACITY 100 | |
60 | 63 | SIZE 6 |
61 | 64 | SYMBOL "capital" |
65 | + WIDTH 1 | |
62 | 66 | END |
63 | 67 | END |
64 | 68 | END | ... | ... |