diff --git a/ferramentas/heatmap/exec.php b/ferramentas/heatmap/exec.php index f9aad1c..2db5f6d 100755 --- a/ferramentas/heatmap/exec.php +++ b/ferramentas/heatmap/exec.php @@ -32,7 +32,7 @@ Adiciona ao mapa uma nova camada para calculo do mapa de calor if(ms_GetVersionInt() >= 7){ $novolayer->updateFromString('LAYER COMPOSITE OPACITY '.$_GET["opacidade"].'END END'); } else { - $novolayer->set("opacity",$_GET["opacidade"]); + $novolayer->set("opacity",$_GET["opacidade"]); } } $map->save($map_file); diff --git a/ferramentas/heatmap/funcoes.php b/ferramentas/heatmap/funcoes.php index fe43b5d..124fc7a 100755 --- a/ferramentas/heatmap/funcoes.php +++ b/ferramentas/heatmap/funcoes.php @@ -73,7 +73,7 @@ function heatmapMapfile(){ } function heatmapGradiente($map_file,$layer,$tipoGradiente){ if($tipoGradiente == "default"){ - $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)"}}'; + $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)"}}'; $mapa = ms_newMapObj($map_file); $l = $mapa->getlayerbyname($layer); $nc = $l->numclasses; @@ -82,44 +82,44 @@ function heatmapGradiente($map_file,$layer,$tipoGradiente){ $classe->set("status",MS_DELETE); } $classe = ms_newClassObj($l); - $classe->set("name","0.45"); + $classe->set("name"," < "); $novoestilo = ms_newStyleObj($classe); $novoestilo->set("symbolname","ponto"); - $novoestilo->set("size","8"); + $novoestilo->set("size","12"); $cor = $novoestilo->color; $cor->setRGB(0,0,255); $classe = ms_newClassObj($l); - $classe->set("name","0.55"); + $classe->set("name"," "); $novoestilo = ms_newStyleObj($classe); $novoestilo->set("symbolname","ponto"); - $novoestilo->set("size","8"); + $novoestilo->set("size","12"); $cor = $novoestilo->color; $cor->setRGB(0,255,255); $classe = ms_newClassObj($l); - $classe->set("name","0.65"); + $classe->set("name"," "); $novoestilo = ms_newStyleObj($classe); $novoestilo->set("symbolname","ponto"); - $novoestilo->set("size","8"); + $novoestilo->set("size","12"); $cor = $novoestilo->color; $cor->setRGB(0,255,0); $classe = ms_newClassObj($l); - $classe->set("name","0.95"); + $classe->set("name"," "); $novoestilo = ms_newStyleObj($classe); $novoestilo->set("symbolname","ponto"); - $novoestilo->set("size","8"); + $novoestilo->set("size","12"); $cor = $novoestilo->color; - $cor->setRGB(255,0,255); + $cor->setRGB(255,255,0); $classe = ms_newClassObj($l); - $classe->set("name","1"); + $classe->set("name"," > "); $novoestilo = ms_newStyleObj($classe); $novoestilo->set("symbolname","ponto"); - $novoestilo->set("size","8"); + $novoestilo->set("size","12"); $cor = $novoestilo->color; - $cor->setRGB(255,255,0); + $cor->setRGB(255,0,0); $mapa->save($map_file); } -- libgit2 0.21.2