Skip to content

No search results when map is extremely zoomed out #6

@mfgumban

Description

@mfgumban

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions