Walter Lorenzetti-3 wrote:
>
> Hi Salvatore,
>
> in incphp/map.php
> al line 721 try to replace
>
> $iniClr0 = $iniClrList[0];
> $iniClr1 = $iniClrList[1];
> $iniClr2 = $iniClrList[2];
>
> with:
>
> switch ($relayer){
>
> case "layer1_name_in_map_file":
> $iniClr0 = red_rgb_n_color_for_layer1;
> $iniClr1 = green_rgb_n_color_for_layer1;
> $iniClr2 = blue_rgb_n_color_for_layer1;
> break;
>
> case "layer2_name_in_map_file":
> $iniClr0 = red_rgb_n_color_for_layer2;
> $iniClr1 = green_rgb_n_color_for_layer2;
> $iniClr2 = blue_rgb_n_color_for_layer2;
> break;
>
> default:
>
> $iniClr0 = $iniClrList[0];
> $iniClr1 = $iniClrList[1];
> $iniClr2 = $iniClrList[2];
>
>
> }
>
> so with this layer1 it'll be painted in selection with first combination
> the layer2 whit the second and other layers with the default color
> selection declared in config.ini
>
> try bye
>
>
>
Thanks for reply but don't work yet! :-(
I have replace your code in map.php as following:
$newResLayer->set("status", MS_ON);
$newResLayerIdx = $newResLayer->index;
// SELECTION COLOR
$iniClrStr = trim($_SESSION["highlightColor"]);
$iniClrList = preg_split('/[\s,]+/', $iniClrStr);
//$iniClr0 = $iniClrList[0];
//$iniClr1 = $iniClrList[1];
//$iniClr2 = $iniClrList[2];
switch ($relayer){
case "bene":
$iniClr0 = 200;
$iniClr1 = 200;
$iniClr2 = 0;
break;
default:
$iniClr0 = $iniClrList[0];
$iniClr1 = $iniClrList[1];
$iniClr2 = $iniClrList[2];
}
bye
--
View this message in context:
http://www.nabble.com/selection-color-tf4650313.html#a13304328
Sent from the pmapper users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users