Home > other >  Baidu LBS not cloud storage and filter, vice can be
Baidu LBS not cloud storage and filter, vice can be

Time:10-04

The function searchAction (keyword, page) {
Page=page | | 0;
Var filter=[];//filter
Var filterData='
$. Each ($(' # selected - attr a '), function (I, item) {//add the selected filter to the filter parameters in the

Value=https://bbs.csdn.net/topics/$(item). Attr (" query ");

Filter. Push (parseInt (value));

});

If (filter. Length> 0 {
[filterData="https://bbs.csdn.net/topics/sjType:" + filter. Join (', ') + "] "
}
The console. The log (filterData);
Var url="http://api.map.baidu.com/geosearch/v2/local? The callback=?" ;
$. GetJSON (url, {
'q: keyword,//retrieval keyword
'page_index: page,//page
'filter' : 'sjType: [10001110] 01',//write death there is no problem if you use the filter conditions here filterData output is sjType: [10001110 01] that is on the surface and write dead [10001110 01] but check out
'region' : ' ',//Beijing city id
'scope', '2',//show detailed information
'geotable_id: 66764,
'ak' : '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *'//user ak
{}, function (e)
RenderList (e, page + 1);
RenderMap (e, page + 1);
});
}





And I didn't only marked points around the map is how to return a responsibility?
  • Related