Make them as a list, Something like:
I had a similar problem, but I’m not on the notebook. More or less that.
putting it that way
return me
Look at the blocks above again, it should be list of pairs
Try my example ?
Your pairs should be like this :
[
{ lat: 37.772, lng: -122.214 },
{ lat: 21.291, lng: -157.821 },
{ lat: -18.142, lng: 178.431 },
{ lat: -27.467, lng: 153.027 },
]
In my case I returned a Json where the lat and long pairs existed and I assembled a string as shown above.
Because the longitudes and latitudes are in a table in my database. In this table I have this latitude and longitude information for each person registered. So on the return Json, I took these pairs and assembled the pairs to show the markers.
I got it ! I just wasn’t putting it in the correct format as you said lat / long
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.