Page 1 of 2

Multiple Location Points on GMap with Backend services

Posted: Mon Sep 16, 2013 3:52 am
by Deon

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


Multiple Location Points on GMap with Backend services

Posted: Mon Sep 16, 2013 9:23 am
by Kateryna Grynko

Hi Deon,

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


Multiple Location Points on GMap with Backend services

Posted: Mon Sep 16, 2013 2:01 pm
by Deon

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


Multiple Location Points on GMap with Backend services

Posted: Mon Sep 16, 2013 4:39 pm
by Maryna Brodina

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


Multiple Location Points on GMap with Backend services

Posted: Mon Sep 16, 2013 5:01 pm
by Deon

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.


Multiple Location Points on GMap with Backend services

Posted: Mon Sep 16, 2013 5:06 pm
by Deon

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

However it is still not working.


Multiple Location Points on GMap with Backend services

Posted: Tue Sep 17, 2013 3:34 am
by Deon

Hi

Any news for me?


Multiple Location Points on GMap with Backend services

Posted: Tue Sep 17, 2013 4:04 am
by Illya Stepanov

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


Multiple Location Points on GMap with Backend services

Posted: Tue Sep 17, 2013 11:43 am
by Deon

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?


Multiple Location Points on GMap with Backend services

Posted: Tue Sep 17, 2013 2:25 pm
by Maryna Brodina

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