Browse Source

Add category filter to reverse query

pull/546/head
Diana Shkolnikov 9 years ago
parent
commit
127137f427
  1. 6
      query/reverse.js

6
query/reverse.js

@ -17,6 +17,7 @@ query.sort( peliasQuery.view.sort_distance );
query.filter( peliasQuery.view.boundary_circle ); query.filter( peliasQuery.view.boundary_circle );
query.filter( peliasQuery.view.sources ); query.filter( peliasQuery.view.sources );
query.filter( peliasQuery.view.layers ); query.filter( peliasQuery.view.layers );
query.filter( peliasQuery.view.categories );
// -------------------------------- // --------------------------------
@ -65,6 +66,11 @@ function generateQuery( clean ){
}); });
} }
// categories
if (clean.categories) {
vs.var('input:categories', clean.categories);
}
return query.render( vs ); return query.render( vs );
} }

Loading…
Cancel
Save