Re: [pmapper-users] selection color
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 pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] selection color
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 W Salvator*eL*arosa ha scritto: hi list, i need to change the color at the layer selected, it is possible? for example: layer1 layer2 for layer1 the color selection will be red for layer1 the color selection will be green I have tried to edit map.php but without success.. know somebody it? Thanks -- 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 pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] JOIN from DATA tag
HI, How i can do join from data tag in mapfile? I am working on Webserver IIS and Mapserver, i need join a table postgresql. I have tried with: RESULT_JOIN pgsql://postgres:[EMAIL PROTECTED]/postgres||[EMAIL PROTECTED]@[EMAIL PROTECTED]||codicom||0, but it don't workthe log is: [19-Oct-2007 09:10:20] PHP Fatal error: DQuery::require_once() [ function.require function.require ]: Failed opening required 'DB.php' (include_path='.;\ms4w\Apache\php\PEAR') in C:\Inetpub\wwwroot\webgis\incphp\query\squery.php on line 282 thanks and sorry my english -- View this message in context: http://www.nabble.com/JOIN-from-DATA-tag-tf4651576.html#a13289726 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 pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users