Commit d5570043b29351c2ce815e9e3975df85b2c14730
1 parent
a23c7a8f
Exists in
master
Correção nas cores da legenda do mapa de calor
Showing
2 changed files
with
14 additions
and
14 deletions
Show diff stats
ferramentas/heatmap/exec.php
| ... | ... | @@ -32,7 +32,7 @@ Adiciona ao mapa uma nova camada para calculo do mapa de calor |
| 32 | 32 | if(ms_GetVersionInt() >= 7){ |
| 33 | 33 | $novolayer->updateFromString('LAYER COMPOSITE OPACITY '.$_GET["opacidade"].'END END'); |
| 34 | 34 | } else { |
| 35 | - $novolayer->set("opacity",$_GET["opacidade"]); | |
| 35 | + $novolayer->set("opacity",$_GET["opacidade"]); | |
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | $map->save($map_file); | ... | ... |
ferramentas/heatmap/funcoes.php
| ... | ... | @@ -73,7 +73,7 @@ function heatmapMapfile(){ |
| 73 | 73 | } |
| 74 | 74 | function heatmapGradiente($map_file,$layer,$tipoGradiente){ |
| 75 | 75 | if($tipoGradiente == "default"){ |
| 76 | - $gradiente = '{"gradient":{"0.45" : "rgb(0,0,255)","0.55" : "rgb(0,255,255)","0.65" : "rgb(0,255,0)","0.95" : "yellow","1.0" : "rgb(255,0,0)"}}'; | |
| 76 | + $gradiente = '{"gradient":{"0.1" : "rgb(0,0,255)","0.55" : "rgb(0,255,255)","0.65" : "rgb(0,255,0)","0.95" : "rgb(255,255,0)","1.0" : "rgb(255,0,0)"}}'; | |
| 77 | 77 | $mapa = ms_newMapObj($map_file); |
| 78 | 78 | $l = $mapa->getlayerbyname($layer); |
| 79 | 79 | $nc = $l->numclasses; |
| ... | ... | @@ -82,44 +82,44 @@ function heatmapGradiente($map_file,$layer,$tipoGradiente){ |
| 82 | 82 | $classe->set("status",MS_DELETE); |
| 83 | 83 | } |
| 84 | 84 | $classe = ms_newClassObj($l); |
| 85 | - $classe->set("name","0.45"); | |
| 85 | + $classe->set("name"," < "); | |
| 86 | 86 | $novoestilo = ms_newStyleObj($classe); |
| 87 | 87 | $novoestilo->set("symbolname","ponto"); |
| 88 | - $novoestilo->set("size","8"); | |
| 88 | + $novoestilo->set("size","12"); | |
| 89 | 89 | $cor = $novoestilo->color; |
| 90 | 90 | $cor->setRGB(0,0,255); |
| 91 | 91 | |
| 92 | 92 | $classe = ms_newClassObj($l); |
| 93 | - $classe->set("name","0.55"); | |
| 93 | + $classe->set("name"," "); | |
| 94 | 94 | $novoestilo = ms_newStyleObj($classe); |
| 95 | 95 | $novoestilo->set("symbolname","ponto"); |
| 96 | - $novoestilo->set("size","8"); | |
| 96 | + $novoestilo->set("size","12"); | |
| 97 | 97 | $cor = $novoestilo->color; |
| 98 | 98 | $cor->setRGB(0,255,255); |
| 99 | 99 | |
| 100 | 100 | $classe = ms_newClassObj($l); |
| 101 | - $classe->set("name","0.65"); | |
| 101 | + $classe->set("name"," "); | |
| 102 | 102 | $novoestilo = ms_newStyleObj($classe); |
| 103 | 103 | $novoestilo->set("symbolname","ponto"); |
| 104 | - $novoestilo->set("size","8"); | |
| 104 | + $novoestilo->set("size","12"); | |
| 105 | 105 | $cor = $novoestilo->color; |
| 106 | 106 | $cor->setRGB(0,255,0); |
| 107 | 107 | |
| 108 | 108 | $classe = ms_newClassObj($l); |
| 109 | - $classe->set("name","0.95"); | |
| 109 | + $classe->set("name"," "); | |
| 110 | 110 | $novoestilo = ms_newStyleObj($classe); |
| 111 | 111 | $novoestilo->set("symbolname","ponto"); |
| 112 | - $novoestilo->set("size","8"); | |
| 112 | + $novoestilo->set("size","12"); | |
| 113 | 113 | $cor = $novoestilo->color; |
| 114 | - $cor->setRGB(255,0,255); | |
| 114 | + $cor->setRGB(255,255,0); | |
| 115 | 115 | |
| 116 | 116 | $classe = ms_newClassObj($l); |
| 117 | - $classe->set("name","1"); | |
| 117 | + $classe->set("name"," > "); | |
| 118 | 118 | $novoestilo = ms_newStyleObj($classe); |
| 119 | 119 | $novoestilo->set("symbolname","ponto"); |
| 120 | - $novoestilo->set("size","8"); | |
| 120 | + $novoestilo->set("size","12"); | |
| 121 | 121 | $cor = $novoestilo->color; |
| 122 | - $cor->setRGB(255,255,0); | |
| 122 | + $cor->setRGB(255,0,0); | |
| 123 | 123 | |
| 124 | 124 | $mapa->save($map_file); |
| 125 | 125 | } | ... | ... |