see in the mailing list archive

http://faunalia.it/pipermail/pmapper-users/2006-March/000332.html

Or, for more simple and less permanent points, use the function 'Add 
Points of Interest' in the latest pmapper 2 version (maybe it's just in 
the development version from http://www.pmapper.net/dl).

You can test it here (the pin tool):
http://www.pmapper.net/demo/p2/map.phtml?&language=en
You can get the URL with the points and labels if you click on the 'Link 
to currrent map' in the upper right corner. The amount of text is maybe 
a bit limited, but it might be sufficient...

armin

Tony Gray wrote:
> Armin,
> 
> Thanks for the quick response...your answers will save some time.
> 
> One other thing I asked about before(I think last summer), but can't
> find the instructions and file attachments you sent me...was about
> setting up an application in which the user could add a point, then
> attribute it with some text.  We are trying to do that again...it is
> something I have wanted to do for a long time now.
> 
> If I remember correctly...you felt that points might not be a
> problem...but lines and polygons would.  I really only want points.  The
> way I envision this is that the client would use PMAPPER to view the
> application and data...then have the ability to "post or locate" a point
> (which we would call an anomaly flag) to areas which may be incorrect.
> When placing the point in problem areas...the user would then be able to
> attribute the point with some text to describe the problem.
> 
> Any help or direction in this area would be greatly appreciated.  I
> couldn't find the set of files you suggested trying last year...but
> those might have changed now.  
> 
> I have searched the mapserver lists that I know of...sometimes this same
> thing is described as very simple to do...but I have found it very
> difficult to find actual instructions to do the simple (I am a
> geologist...not a programmer).   So is life sometimes.
> 
> Thanks again for everything...
> 
> Tony Gray, CPG
> WTH Technology
> (812) 683-5713
> Cell (812) 631-3096
> email:  tgray at wthengineering.com
>  
> 
> -----Original Message-----
> From: Armin Burger [mailto:armin.burger at gmx.net] 
> Sent: Thursday, April 20, 2006 1:11 PM
> To: Tony Gray
> Cc: pmapper-users at faunalia.it
> Subject: Re: [Pmapper-users] Search Questions...
> 
> 
> 
> Tony Gray wrote:
>> We have 2 Questions, both involving the search tool settings within 
>> js_custom.php:
>>
>> *1.)* Can you perform 2 different searches on 2 separate fields within
> a 
>> single layer? When I enter the following code into the search list 
>> within the js_custom.php file:
> 
>> searchList['anomaly_flag'] = new Array('<?php echo _("Anomaly by 
>> Utility") ?>', '#UTIL_ID', '<?php echo _("Utility ID") ?>','');
>>
>> searchList['anomaly_flag'] = new Array('<?php echo _("Anomaly by
> Event") 
>> ?>', '#EVENT_ID', '<?php echo _("Event ID") ?>','');
>>
>> ...only the second search is available. Do I have to create two
> separate 
>> layers to perform a search such as this?
>>
> 
> unfortunately the logic of this search uses the layer name as key for 
> the object. So the second definition overwrites the first. I haven't 
> thought of this. One could of course put the layer name inside the array
> 
> and modify the Javascript that creates the search form. And with pmapper
> 
> 1 you could again use the old (and a bit more complicated) definition of
> 
> search, replacing the new files with old ones.
> 
> I am still planning to offer an alternate definition for more complex 
> searches, especially - but not only - for PostGIS layers. Probably with 
> definitions of all parameters via XML. But this may take some time, I 
> have to admit...
> 
> 
>> *2.)* In past versions of p.mapper (we are  using 1.2.0 currently) we 
>> have performed one search with multiple criteria within a layer. For 
>> instance a house number and a street. The code looked like this within
> 
>> the search.phtml file:
>>
>>            case "addresses":
>>                echo("<td>". _("House Number") ." </td> \n");
>>                echo("<td><INPUT TYPE=text NAME=\"HOUSE\" SIZE=15></td>
> \n");
>>                echo("<td>". _("Street") ." </td> \n");
>>                echo("<td><INPUT TYPE=text NAME=\"#STREET\"
> SIZE=15></td> 
>> \n");
>>                echo("<td><INPUT TYPE=hidden NAME=\"qlayer\" 
>> VALUE=\"addresses\"></td> \n");
>>                break;
>>
>> How do we perform this type of search in the newer versions of
> p.mapper, 
>> now that the search code is within the js_custom.php file?
>>
>>  
> 
> This is described in the comments in the file js_custom.php:
> 
> "* you can specify more than one field for search by separating the 
> search fields with a double ampersand &&"
> 
> And there is a commented example:
> searchList['images'] = new Array('<?php echo _p("Images")?>', 
> '#sat_id&&acq_year', '<?php echo _p("Satellite") ?>&&<?php echo 
> _p("Acqusition Year") ?>','');
> 
> I use it, so it should work.
> 
> Armin
> 
> 
> 

Reply via email to