Strange Salvatore,

"bene" is the name of layer in your map file?

W



Salvator*eL*arosa ha scritto:
>
>
>
> 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
>   

-- 
Please no  .doc, .xls, .ppt, .dwg:
https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats

Walter Lorenzetti
email+jabber: [EMAIL PROTECTED]
www.faunalia.it
Cell: (+39) 347-6597931  Tel+Fax: (+39) 0587-213742
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy


-------------------------------------------------------------------------
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

Reply via email to