Hey Guys,
I’m currently experiencing some trouble with the “Search in Rectangular Area” function.
The result is always empty although there are Geopoints within my google maps view port.
My Code looks like this:
function getEventsInArea(){
var north = map.getBounds().getNorthEast().lat();
var east = map.getBounds().getNorthEast().lng();
var south = map.getBounds().getSouthWest().lat();
var west = map.getBounds().getSouthWest().lng();
var geoQuery = {
searchRectangle: [north,east,south,west],
categories: ["fussball"],
pageSize: 50,
offset: 50
}
var result = Backendless.Geo.find(geoQuery);
}
When the Map is initialized I call the upper function and get an empty array as result.
I’m sure that the geo points are within this viewport. I already tested with different zoom level’s to be sure…