Hi I have been trying to get the search function working on my map for a few days now I have read all the previous posts I could find on the list and I have read the comments in js_custom.php and scrutinised the demo map file with no success.
I am using postgis and pmapper 1.1 could someone please explain where Im going wrong. the layer holds the current positions of trucks and I want the user to be able to search for and then zoom to a truck based on its ID (a string) the layer in question is: LAYER NAME "Trucks" GROUP "Simplot_layers" STATUS ON TYPE POINT CONNECTIONTYPE postgis CONNECTION "user=user password=password dbname=db host=localhost" DATA "the_geom FROM t_trucks" LABELITEM "c_org_truck_id" TOLERANCE 10 TOLERANCEUNITS pixels METADATA "DESCRIPTION" "Trucks" "RESULT_FIELDS" "c_org_truck_id,d_eta" "RESULT_HEADERS" "Truck ID,ETA" END # Metadata CLASS NAME "Truck" LABEL TYPE truetype FONT "VeraBold" SIZE 7 POSITION uc OFFSET 0 -10 BUFFER 4 COLOR 128 0 0 OUTLINECOLOR 255 255 255 ANTIALIAS TRUE END STYLE SYMBOL "truck" COLOR 255 50 100 OUTLINECOLOR 0 0 0 END END END here is the line from js_custom.php: searchList['Trucks'] = new Array('<?php echo _("Truck")?>', '#c_org_truck_id', '<?php echo _("Truck ID") ?>','t_trucks'); here are the fieldnames for t_trucks: gid i_truck_id i_x_coord i_y_coord i_bearing i_speed c_status the_geom i_org_id i_fleet_id i_site_id c_org_truck_id d_timestamp d_eta thanks in advance Gabriel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://faunalia.it/pipermail/pmapper-users/attachments/20060228/7d3e0b03/attachment.htm