How to Retrieve Multiple Geopoints from Database and Create Multiple Markers

I Followed the Steps at the https://devcenter.appery.io/tutorials...
I need to read my Saved geopints in my database and create Multiple Markers.
I created reverse Geocoding REST service and I tried this code to retrieve the Multiple geopoints in my Sucess > getGeopintFrom_DB service .

[code ] for (var i = 0; i < data.length; i++) {
reversegeocoding.execute({
'data': {
'latlan': data[i].adress

}
});
}
[code]

my reversegeocode success JS is :

[code]
var markerLatLng = new google.maps.LatLng(localStorage.getItem('markerLat'), localStorage.getItem('markerLong'));

var marker = new google.maps.Marker({
position: markerLatLng,
map: map,
title: data.results[0].address_components[0].long_name,
animation: google.maps.Animation.DROP
});

bounds.extend(markerLatLng);
map.fitBounds(bounds);

[code]

and My Geolocation Device Rest Services Success JS is:

[code]
var markerLatLng = new google.maps.LatLng(Apperyio.storage.currentLat.get(), Apperyio.storage.currentLong.get());

var marker = new google.maps.Marker({
position: markerLatLng,
map: map,
icon: 'http://i.imgur.com/fDUI8bZ.png'
});

map.setCenter(markerLatLng);
map.setZoom(15);

[code]
but am getting nothing in my Map,
When I try to map the results of the REST Geopoints from DB . to the Map component I get only one Marker placed other's aren't shown.
I Assume I don't need the reverse geocod REST service since I am already having the LatLng Values, but how I can get the Array values of my geopoint from my DB and Assign it to the geolocation and place A multiple Markers on the map ???
1 person has
this question
+1
Reply