Google maps with “local search engine” how to show all results.
It displays only 4 results, but I want to see all results.
I tried this:
var options = new google.search.SearcherOptions(); // create the object
searcher.setResultSetSize(GSearch.LARGE_RESULTSET/*google.search.Search.LARGE_RESULTSET*/);
options.setExpandMode(google.search.SearchControl.EXPAND_MODE_CLOSED);
But it didn’t help me.
You can download an example from this URL: http://kliuev.com/map.html
Not really sure what you mean by “local search engine.” Do you mean your own private search engine? In which case this might be a useful article as a model:
http://code.google.com/apis/maps/articles/phpsqlajax_v3.html
Or do you mean use Google’s local search? Which is now called Places, and here’s a good reference for that:
http://code.google.com/apis/maps/documentation/javascript/places.html#places_autocomplete