谷歌地图与“本地搜索引擎”如何显示所有结果。
它只显示4个结果,但我希望看到所有结果。 我试过这个:
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);
但它没有帮助我。 您可以从以下网址下载示例:http://kliuev.com/map.html
答案 0 :(得分:1)
不确定“本地搜索引擎”是什么意思。你的意思是你自己的私人搜索引擎?在这种情况下,这可能是一个有用的文章作为模型: http://code.google.com/apis/maps/articles/phpsqlajax_v3.html
或者您的意思是使用Google的本地搜索?现在称为Places,这里有一个很好的参考: http://code.google.com/apis/maps/documentation/javascript/places.html#places_autocomplete