Multiple markers on a map from a REST request
I want to make a map with multiple markers.
But i want those markers to get their coordinates from a parse database.
I made a REST service with a Get on my DB and i linked the location key to a js in the data mapping panel.
Here's the js:
var location = new google.maps.LatLng(value);
var myOptions = {
zoom: 13,
center: new google.maps.LatLng(47.237957, 6.024005),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map($('div[dsid="DivMap"]').get(0), myOptions);
var marker = new google.maps.Marker({
position: location,
map: map,
title:'Marker'
});
The map is working but not the markers..