Page 1 of 1

how to map Appery DB geolocation to google position object array

Posted: Wed Mar 02, 2016 10:42 pm
by Giorgio Draghetti

I need to map an Appery DB geolocation field to a local storage array.
The geolocation field is an array of two values and is just one of the fields contained by the DB records.
I need to map the lat/lng values of all of the returned records into a single array of google position objects:
[{lat:xxx1,lng:yyy1}, {lat:xxx2,lng:yyy2}, ...]

I'm really confused about how to draw the mapping...

Image


how to map Appery DB geolocation to google position object array

Posted: Fri Mar 04, 2016 8:46 pm
by Serhii Kulibaba

Hello,

Please use JS code to the success event of that service instead of mapping above:
preApperyio.storage.posizioni.set(data.position);/pre