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,6 +1139,8 @@ function montaEditorMetadados(dados) | ||
1139 | titulo:"Escondido (ESCONDIDO)",id:"",value:dados.escondido,tipo:"text",div:"<div id=cEscondido ></div>"}, | 1139 | titulo:"Escondido (ESCONDIDO)",id:"",value:dados.escondido,tipo:"text",div:"<div id=cEscondido ></div>"}, |
1140 | {ajuda:"Indica se o tema irá ser mostrado na ferramenta de identificação", | 1140 | {ajuda:"Indica se o tema irá ser mostrado na ferramenta de identificação", |
1141 | titulo:"Identifica (IDENTIFICA)",id:"",value:dados.identifica,tipo:"text",div:"<div id=cIdentifica ></div>"}, | 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 | {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.", | 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 | titulo:"Itens (ITENS)",id:"itens",value:dados.itens,tipo:"text"}, | 1145 | titulo:"Itens (ITENS)",id:"itens",value:dados.itens,tipo:"text"}, |
1144 | {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.", | 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,6 +1227,10 @@ function montaEditorMetadados(dados) | ||
1225 | temp += core_combosimnao(dados.identifica) | 1227 | temp += core_combosimnao(dados.identifica) |
1226 | temp += "</select>" | 1228 | temp += "</select>" |
1227 | $i("cIdentifica").innerHTML = temp | 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 | var temp = function() | 1235 | var temp = function() |
1230 | {salvarDadosEditor('metadados',dados.codigoMap,dados.codigoLayer)} | 1236 | {salvarDadosEditor('metadados',dados.codigoMap,dados.codigoLayer)} |
@@ -1569,7 +1575,7 @@ function salvarDadosEditor(tipo,codigoMap,codigoLayer,indiceClasse,indiceEstilo, | @@ -1569,7 +1575,7 @@ function salvarDadosEditor(tipo,codigoMap,codigoLayer,indiceClasse,indiceEstilo, | ||
1569 | else | 1575 | else |
1570 | {alert("Valor de escala incorreto");return;} | 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 | var par = "&codigoMap="+codigoMap+"&codigoLayer="+codigoLayer | 1579 | var par = "&codigoMap="+codigoMap+"&codigoLayer="+codigoLayer |
1574 | var prog = "../php/editormapfile.php?funcao=alterarMetadados" | 1580 | var prog = "../php/editormapfile.php?funcao=alterarMetadados" |
1575 | } | 1581 | } |
admin/php/editormapfile.php
@@ -668,6 +668,8 @@ switch (strtoupper($funcao)) | @@ -668,6 +668,8 @@ switch (strtoupper($funcao)) | ||
668 | 668 | ||
669 | identifica | 669 | identifica |
670 | 670 | ||
671 | + transitioneffect | ||
672 | + | ||
671 | extensao | 673 | extensao |
672 | 674 | ||
673 | escondido | 675 | escondido |
@@ -1307,6 +1309,7 @@ function pegaMetadados() | @@ -1307,6 +1309,7 @@ function pegaMetadados() | ||
1307 | $dados["escondido"] = $layer->getmetadata("escondido"); | 1309 | $dados["escondido"] = $layer->getmetadata("escondido"); |
1308 | $dados["extensao"] = $layer->getmetadata("extensao"); | 1310 | $dados["extensao"] = $layer->getmetadata("extensao"); |
1309 | $dados["identifica"] = $layer->getmetadata("identifica"); | 1311 | $dados["identifica"] = $layer->getmetadata("identifica"); |
1312 | + $dados["transitioneffect"] = $layer->getmetadata("transitioneffect"); | ||
1310 | $dados["mensagem"] = $layer->getmetadata("mensagem"); | 1313 | $dados["mensagem"] = $layer->getmetadata("mensagem"); |
1311 | $dados["classesitem"] = $layer->getmetadata("classesitem"); | 1314 | $dados["classesitem"] = $layer->getmetadata("classesitem"); |
1312 | $dados["classesnome"] = $layer->getmetadata("classesnome"); | 1315 | $dados["classesnome"] = $layer->getmetadata("classesnome"); |
@@ -1338,7 +1341,7 @@ function pegaMetadados() | @@ -1338,7 +1341,7 @@ function pegaMetadados() | ||
1338 | } | 1341 | } |
1339 | function alterarMetadados() | 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 | $dados = array(); | 1345 | $dados = array(); |
1343 | $mapfile = $locaplic."/temas/".$codigoMap.".map"; | 1346 | $mapfile = $locaplic."/temas/".$codigoMap.".map"; |
1344 | $mapa = ms_newMapObj($mapfile); | 1347 | $mapa = ms_newMapObj($mapfile); |
@@ -1354,6 +1357,7 @@ function alterarMetadados() | @@ -1354,6 +1357,7 @@ function alterarMetadados() | ||
1354 | $layer->setmetadata("escondido",$escondido); | 1357 | $layer->setmetadata("escondido",$escondido); |
1355 | $layer->setmetadata("extensao",$extensao); | 1358 | $layer->setmetadata("extensao",$extensao); |
1356 | $layer->setmetadata("identifica",$identifica); | 1359 | $layer->setmetadata("identifica",$identifica); |
1360 | + $layer->setmetadata("transitioneffect",$transitioneffect); | ||
1357 | $layer->setmetadata("mensagem",$mensagem); | 1361 | $layer->setmetadata("mensagem",$mensagem); |
1358 | $layer->setmetadata("classesitem",$classesitem); | 1362 | $layer->setmetadata("classesitem",$classesitem); |
1359 | $layer->setmetadata("classesnome",$classesnome); | 1363 | $layer->setmetadata("classesnome",$classesnome); |
@@ -1735,7 +1739,7 @@ function removeCabecalho($arq,$symbolset=true) | @@ -1735,7 +1739,7 @@ function removeCabecalho($arq,$symbolset=true) | ||
1735 | $teste = str_replace("'","",$teste); | 1739 | $teste = str_replace("'","",$teste); |
1736 | $teste = str_replace('"',"",$teste); | 1740 | $teste = str_replace('"',"",$teste); |
1737 | $teste = preg_replace('/[\n\r\t ]*/', '', $teste); | 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 | $passou = true; | 1743 | $passou = true; |
1740 | foreach ($testar as $t) | 1744 | foreach ($testar as $t) |
1741 | {if($teste == $t){$passou = false;}} | 1745 | {if($teste == $t){$passou = false;}} |
classesjs/classe_interface.js
@@ -822,6 +822,7 @@ i3GEO.Interface = { | @@ -822,6 +822,7 @@ i3GEO.Interface = { | ||
822 | ratio:1, | 822 | ratio:1, |
823 | buffer:i3GEO.Interface.openlayers.BUFFER, | 823 | buffer:i3GEO.Interface.openlayers.BUFFER, |
824 | wrapDateLine:true, | 824 | wrapDateLine:true, |
825 | + transitionEffect: "resize", | ||
825 | eventListeners:{ | 826 | eventListeners:{ |
826 | "loadstart": i3GEO.Interface.openlayers.loadStartLayer, | 827 | "loadstart": i3GEO.Interface.openlayers.loadStartLayer, |
827 | "loadend": i3GEO.Interface.openlayers.loadStopLayer | 828 | "loadend": i3GEO.Interface.openlayers.loadStopLayer |
@@ -838,11 +839,12 @@ i3GEO.Interface = { | @@ -838,11 +839,12 @@ i3GEO.Interface = { | ||
838 | camada.type === 3 ? opcoes.singleTile = false : opcoes.singleTile = !(i3GEO.Interface.openlayers.TILES); | 839 | camada.type === 3 ? opcoes.singleTile = false : opcoes.singleTile = !(i3GEO.Interface.openlayers.TILES); |
839 | } | 840 | } |
840 | camada.type === 0 ? opcoes.gutter = 20 : opcoes.gutter = 0; | 841 | camada.type === 0 ? opcoes.gutter = 20 : opcoes.gutter = 0; |
842 | + camada.transitioneffect === "nao" ? opcoes.transitionEffect = "null" : opcoes.transitionEffect = "resize"; | ||
841 | } | 843 | } |
842 | catch(e){} | 844 | catch(e){} |
843 | layer = new OpenLayers.Layer.WMS(camada.name, urllayer,{map_imagetype:i3GEO.Interface.OUTPUTFORMAT},opcoes); | 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 | i3geoOL.addLayer(layer); | 848 | i3geoOL.addLayer(layer); |
847 | } | 849 | } |
848 | else | 850 | else |
classesphp/classe_mapa.php
@@ -228,6 +228,13 @@ string - javascript com os parametros | @@ -228,6 +228,13 @@ string - javascript com os parametros | ||
228 | $ltempo = "nao"; | 228 | $ltempo = "nao"; |
229 | if($oLayer->getmetadata("ltempoformatodata") !== "") | 229 | if($oLayer->getmetadata("ltempoformatodata") !== "") |
230 | {$ltempo = "sim";} | 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 | $permitecomentario = "nao"; | 238 | $permitecomentario = "nao"; |
232 | if($oLayer->getmetadata("nomeoriginal") != "" && strtoupper($oLayer->getmetadata("pemitecomentario")) != "NAO") | 239 | if($oLayer->getmetadata("nomeoriginal") != "" && strtoupper($oLayer->getmetadata("pemitecomentario")) != "NAO") |
233 | {$permitecomentario = "sim";} | 240 | {$permitecomentario = "sim";} |
@@ -256,7 +263,8 @@ string - javascript com os parametros | @@ -256,7 +263,8 @@ string - javascript com os parametros | ||
256 | "classe"=>($oLayer->getmetadata("classe")), | 263 | "classe"=>($oLayer->getmetadata("classe")), |
257 | "permitecomentario"=>$permitecomentario, | 264 | "permitecomentario"=>$permitecomentario, |
258 | "exttema"=>$exttema, | 265 | "exttema"=>$exttema, |
259 | - "aplicaextensao"=>$aplicaextensao | 266 | + "aplicaextensao"=>$aplicaextensao, |
267 | + "transitioneffect"=>$transitioneffect | ||
260 | ); | 268 | ); |
261 | } | 269 | } |
262 | } | 270 | } |
temas/locali.map
1 | MAP | 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 | LAYER | 4 | LAYER |
5 | CONNECTION "" | 5 | CONNECTION "" |
6 | DATA "c:\ms4w\apache\htdocs\i3geo\aplicmap\dados\locali" | 6 | DATA "c:\ms4w\apache\htdocs\i3geo\aplicmap\dados\locali" |
7 | METADATA | 7 | METADATA |
8 | + "cache" "" | ||
9 | + "TIP" "TIPO,ANOCRIA,NOMELOC" | ||
8 | "LTEMPOITEMIMAGEM" "" | 10 | "LTEMPOITEMIMAGEM" "" |
9 | - "LTEMPOITEMDESCRICAO" "TIPO" | ||
10 | "CLASSE" "SIM" | 11 | "CLASSE" "SIM" |
11 | - "palletestep" "" | 12 | + "LTEMPOITEMDESCRICAO" "TIPO" |
12 | "LTEMPOITEMINICIO" "ANOCRIA" | 13 | "LTEMPOITEMINICIO" "ANOCRIA" |
14 | + "palletestep" "" | ||
13 | "LTEMPOITEMTIP" "ANOCRIA" | 15 | "LTEMPOITEMTIP" "ANOCRIA" |
14 | - "description_template" "" | 16 | + "iconetema" "" |
15 | "LTEMPOITEMTITULO" "NOMELOC" | 17 | "LTEMPOITEMTITULO" "NOMELOC" |
18 | + "description_template" "" | ||
16 | "LTEMPOITEMLINK" "" | 19 | "LTEMPOITEMLINK" "" |
17 | "palletefile" "" | 20 | "palletefile" "" |
18 | "LTEMPOFORMATODATA" "iso8601" | 21 | "LTEMPOFORMATODATA" "iso8601" |
22 | + "permitecomentario" "" | ||
19 | "LTEMPOITEMICONE" "" | 23 | "LTEMPOITEMICONE" "" |
20 | "arquivodownload" "" | 24 | "arquivodownload" "" |
25 | + "transitioneffect" "NAO" | ||
21 | "TEMA" "Localidades" | 26 | "TEMA" "Localidades" |
22 | "editorsql" "" | 27 | "editorsql" "" |
23 | - "LTEMPOITEMFIM" "" | ||
24 | - "TIP" "TIPO,ANOCRIA,NOMELOC" | 28 | + "LTEMPOITEMFIM" "" |
25 | END | 29 | END |
26 | NAME "locali" | 30 | NAME "locali" |
27 | STATUS OFF | 31 | STATUS OFF |
@@ -34,9 +38,9 @@ MAP | @@ -34,9 +38,9 @@ MAP | ||
34 | STYLE | 38 | STYLE |
35 | ANGLE 360 | 39 | ANGLE 360 |
36 | COLOR 209 36 9 | 40 | COLOR 209 36 9 |
37 | - OPACITY 100 | ||
38 | SIZE 4 | 41 | SIZE 4 |
39 | SYMBOL "ponto" | 42 | SYMBOL "ponto" |
43 | + WIDTH 1 | ||
40 | END | 44 | END |
41 | END | 45 | END |
42 | CLASS | 46 | CLASS |
@@ -45,9 +49,9 @@ MAP | @@ -45,9 +49,9 @@ MAP | ||
45 | STYLE | 49 | STYLE |
46 | ANGLE 360 | 50 | ANGLE 360 |
47 | COLOR 62 9 41 | 51 | COLOR 62 9 41 |
48 | - OPACITY 100 | ||
49 | SIZE 6 | 52 | SIZE 6 |
50 | SYMBOL "ponto" | 53 | SYMBOL "ponto" |
54 | + WIDTH 1 | ||
51 | END | 55 | END |
52 | END | 56 | END |
53 | CLASS | 57 | CLASS |
@@ -56,9 +60,9 @@ MAP | @@ -56,9 +60,9 @@ MAP | ||
56 | STYLE | 60 | STYLE |
57 | ANGLE 360 | 61 | ANGLE 360 |
58 | COLOR 112 203 244 | 62 | COLOR 112 203 244 |
59 | - OPACITY 100 | ||
60 | SIZE 6 | 63 | SIZE 6 |
61 | SYMBOL "capital" | 64 | SYMBOL "capital" |
65 | + WIDTH 1 | ||
62 | END | 66 | END |
63 | END | 67 | END |
64 | END | 68 | END |