Thank you, but I'll trouble you more
I've been asking things about appery all over this forum, and mostly I am getting redirects to the help pages, which I read thoroughly many times and couldn't figure what's wrong. You were the first responder to give me step by step so I'll throw all my questions at you and see what happens...
First of the code you gave me has errors
missing semi-colon and some alerts which I don't know what to do with... Second, the console just reports an error, so I think the query isn't running properly...
So here's the whole situation:
I am making an app that stores my user's location. I have this working, I can see the entries in the database, I made.
I am also able to take the data from the geolocation service and pass it to the map component and the default marker component, so my map looks fine.
Now begin the problems, I want to send a query to my database and get a return all the "other" users that are close to my current user. If I put the following in the test section of my query { "location" : { "$within" : { "$box" : [[-78, 37],[-75, 40]] } } } I get response data in the response. Other geoposition related queries I tried from the help files, fail even at the test. The radius one and others...
Now the numbers in the query should be different for each user based on their location, so I need to do that with JS, so I added in the JS section of my "where" variable the following: return { "location" : { "$within" : { "$box" : [[-78, 37],[-75, 40]] } } }; with the intention to alter the numbers before the "return", but I want to get this working for now...
Now the response of this service I map to a variable in localStorage I call "near_by" I just took the $[] of the response and dragged it to the variable. I need to access in this variable the "_id"s returned by the query and their locations. I need a way to get inside this "near_by" variable, as I have more data in there, which is the meat of my application...
Then I need more map markers to show these extra people. I have made the default marker component as an additional component and dragged a couple on the map, and clicked their "break apart component" button, so now I see them in the componet drop down menu of the design events, but I can't see them to click on them and edit their behaviors...
Lets get this down and we take it from there...
thank you for all your help.
.a