Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Multiple Location Points on GMap with Backend services

Hi

I have been following your "Adding multiple location points on Google Map with Appery.io Backend Services"

It is not working for me and I need to know if this could e the reason......

My data table contains the field "Address" and not "location" as in your example.
My service is a query service and not a list service such as yours.

I have changed all j-script references from location to Address.
My parameters in the query service is address and sensor (set to true).

I have a feeling that address (service parameter) and Address (my data field) could cause ambiguity.

Is that possible or would you suggest there is something else wrong?

Image

Image

Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Multiple Location Points on GMap with Backend services

Hi Deon,

Could you show us your mapping please?
Are there any errors in console?

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Multiple Location Points on GMap with Backend services

Hi Katya

From what I can see, the locationsList local variable is not populated. I am not sure where to ad console commands to view results.

Image
Image
Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Multiple Location Points on GMap with Backend services

Hello! In tutorial there is
codefor (var k in value.geometry) {
if (locationHelper.checkLocation(k)) { locationHelper.aLocations.push([value.geometry.location.lat, value.geometry.location.lng]);
}
}/code
but in your app
codefor (var k in value.geometry) {
if (locationHelper.checkLocation(k)) {
locationHelper.aLocations.push([value.geometry.Address.lat, value.geometry.Address.lng]);
}
}/code
There should be value.geometry.location instead value.geometry.Address

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Multiple Location Points on GMap with Backend services

Hi Marina

Does location not refer to the location field in the database? Please see my initial queastion. My field name is Address. I changed it back to location but it does not work.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Multiple Location Points on GMap with Backend services

Ok I see it should be location as it gets the values from the location lat /lon.

However it is still not working.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Multiple Location Points on GMap with Backend services

Hi

Any news for me?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Multiple Location Points on GMap with Backend services

Hi - we are working on it, we'll update.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Multiple Location Points on GMap with Backend services

I have now set it up as per the tutorial. I changed my database fieldname. It works perfectly.

I am confused. Please tell me which code references the database. Your references to location is ambiguous and I do not know if you are referring to the local storage location or database field location.

Please can you let me know which Jscript refers to the database?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Multiple Location Points on GMap with Backend services

Hello! Sorry, I'm not sure I understand your question. Could you clarify please?

Return to “Issues”