Hi,
I'm trying to add multiple markers on a Gmap from a remote json, with no success.
What I did is to create the service to get the json data, to create the data source, to add the following javascript to the service success event :
var coordsArray = data.markers;
var marker;
for (var i = 0, j = coordsArray.length; i < j; i++) {
marker = new google.maps.Marker({
position: new google.maps.LatLng( coordsArray.latitude, coordsArray.longitude ),
map: Appery("googlemap_2").gmap
});
}
and finally to invoke the service with button click event in the design section.
Could you please give me a hand with this problem ?
Thanks,
Marcel