aym / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 0 forks source link

setQueryAddition not working #127

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a standard searchable map in the AJAX api wizard
2. Try to add  query addition, e.g., gsmsc.gs.addQueryAddition('Football 
Ground');

What is the expected output? What do you see instead?
If you search by, e.g., post code or Zip code, then the result is 
influenced by the key words "Football Ground" to locate the earet football 
ground, however the user has only had to enter their postcode.

What version of the product are you using? On what operating system?
Latest version of product. On IE7 and Windows XP SP2. 

Here is the code http://yourpaste.net/1308/
Please provide any additional information below.

Original issue reported on code.google.com by superjea...@gmail.com on 20 Oct 2008 at 11:05

GoogleCodeExporter commented 8 years ago
Actually, this has nothing to do directly with the GSmapSearchControl, but with 
the
LocalSearch object itself not handling the setQueryAddition method properly.  
The
method is definitely defined, and the query addition is plugged into a property 
of
the searcher, but that property is never added to the REST request's q param 
(as it
is with the other searchers) or anywhere else in the query string.  I have 
verified
on FF3.

The problem is *at present* in the GlocalSearch.prototype.r method (it's an
obfuscated method, so it will change eventually).  There should be logic that 
checks
for the presence of a query addition, but there's not.

Original comment by jrgeer...@gmail.com on 20 Oct 2008 at 11:30