Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No search results when map is extremely zoomed out #6

Open
mfgumban opened this issue Jan 30, 2020 · 0 comments
Open

No search results when map is extremely zoomed out #6

mfgumban opened this issue Jan 30, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mfgumban
Copy link
Contributor

When the map view is zoomed far out, ML will respond with zero search results (every map zoom/pan makes a search request).

The bounding box being passed is based on the current map viewport, which in said state can go beyond the values of 90°/180°:

{
  "geospatial-constraint-query": {
    "constraint-name": "Location",
    "box": [
      {        
        "south": -153.31842955933732,
        "west": -263.51118227807473,
        "north": 196.83694800929285,
        "east": 282.62983484645946
      }
    ]
  }
}

Check and limit the viewport values before making the request to avoid this issue.

@mfgumban mfgumban self-assigned this Jan 31, 2020
@mfgumban mfgumban added the bug Something isn't working label Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant