Page 1 of 1

Multiple Map Locations from Specific Collection Row

Posted: Mon Apr 28, 2014 10:00 pm
by Darin Bradford

I am creating a business directory centered around a map feature, with unique icons displaying depending on the overall user rating of each business that will display when within a user specified geographical radius.

I have been able to get the map to identify the user's location and display that. I also can get the map to pull from the database for multiple locations and display those independent of the user location, but only if I have a collection specifically designated to the business addresses.

How can I contain all of the business listing information (business name, business category, address, url, phone, etc) in one collection and pull location information from a specific column instead of from an entire collection?

And how can I give the user the option to specify the radius and rating of what listings display on their map?

Thanks! Darin


Multiple Map Locations from Specific Collection Row

Posted: Tue Apr 29, 2014 2:08 am
by Igor

Hi Darin.

You can create collection with fields you need(location, business name, business category, address, URL, phone, etc).

And when you need to obtain the location you just receive this collection with all fields and get certain column like "location" which would store coordinates.

We can only suggest you to implement server code that's obtain all rows from your "business" collection and separate from them only those which satisfy conditional.

And this server code will return these rows. So client would receive from this server code a clear data to display on map.

Please read more about server code:

http://docs.appery.io/documentation/b...


Multiple Map Locations from Specific Collection Row

Posted: Tue Apr 29, 2014 2:10 am
by Darin Bradford

Ok great. That is how I had it set up so there must be another issue, possibly with my mapping. I will review and continue! Thank you for the response.