Giorgio Draghetti
Posts: 0
Joined: Mon Oct 27, 2014 12:13 pm

how to map Appery DB geolocation to google position object array

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

how to map Appery DB geolocation to google position object array

Hello,

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

Return to “Issues”