Browse Source

fixes for focus.point to work with wof integration

wof_focus_weighting
missinglink 9 years ago committed by Julian Simioni
parent
commit
c42e7e9b2d
  1. 6
      query/view/focus_selected_layers.js
  2. 18
      test/unit/fixture/autocomplete_linguistic_focus.js
  3. 18
      test/unit/fixture/autocomplete_linguistic_focus_null_island.js

6
query/view/focus_selected_layers.js

@ -22,10 +22,8 @@ module.exports = function( subview ){
if( view && view.hasOwnProperty('function_score') ){
view.function_score.filter = {
'or': [
{ 'type': { 'value': 'osmnode' } },
{ 'type': { 'value': 'osmway' } },
{ 'type': { 'value': 'osmaddress' } },
{ 'type': { 'value': 'openaddresses' } }
{ 'term': { 'layer': 'venue' } },
{ 'term': { 'layer': 'address' } }
]
};
}

18
test/unit/fixture/autocomplete_linguistic_focus.js

@ -47,23 +47,13 @@ module.exports = {
'filter': {
'or': [
{
'type': {
'value': 'osmnode'
'term': {
'layer': 'venue'
}
},
{
'type': {
'value': 'osmway'
}
},
{
'type': {
'value': 'osmaddress'
}
},
{
'type': {
'value': 'openaddresses'
'term': {
'layer': 'address'
}
}
]

18
test/unit/fixture/autocomplete_linguistic_focus_null_island.js

@ -47,23 +47,13 @@ module.exports = {
'filter': {
'or': [
{
'type': {
'value': 'osmnode'
'term': {
'layer': 'venue'
}
},
{
'type': {
'value': 'osmway'
}
},
{
'type': {
'value': 'osmaddress'
}
},
{
'type': {
'value': 'openaddresses'
'term': {
'layer': 'address'
}
}
]

Loading…
Cancel
Save