it's feasible - in principle - to add a layer dynamically and retrieve the required info for it based on a DB query. but a hassle currently if you do not know exactly how to do it in the p.mapper logic of groups and layers (probably it's just me who ever succeeded in doing this inside p.mapper ;-) )
In case you want to dare it anyway, I added mails from year ago I sent to somebody with similar question. Don't expect to get lot's of help, this is a bit too difficult to get it sorted out without seeing the actual code. armin Leonardo Araque wrote:
hello list..! im using the last stable version of pmapper 3.1. in this moment i can enable the file.map.. and i define the group layers in php_config.php conected to mapserver and postgis.. whith out problem. Now.. Im looking for the way... for make a custom query ... for change the results of the icon selection, in the toolbar... or way by form. I can see, that exist the file search.xml for make a query... but this way is limited... or no there are examples for use SQl string in this..search.xml.. however.. in the file ../incphp/query/search.php .. seems that is posible. i want use the way by .. php_mapscript functions.. for example.. 1. get parameters by form 2. insert parameters in a SQl string = $Query_data 3. make query somethig like this... $layer = ms_newLayerObj($map); $layer->set("name", "Landsat"); $layer->set("data", "$Query_data"); BUT ... i dont can see... where put this lines... or understand how is the workflow to do this inside pmapper... what files or funtions modify... PLEASE ANY IDEA..?? THANKS !
dynamiclayer.tgz
Description: Binary data
------------------------------------------------------------------------- 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