I want to display multiple locations on a google map at the same time using json.
I am not sure how to do that. I have displayed a map but with only one position
Here is the json:
{
"post_country": "Vietnam",
"post_latitude": 10.4452129,
"post_longitude": 106.4729811
},
{
"post_country": "Kyrgyzstan",
"post_latitude": 41.1694718,
"post_longitude": 75.8098141
},
{
"post_country": "China",
"post_latitude": 34.2456501,
"post_longitude": 108.9877602
},
I have used some values randomly in the below example
Here is my code:
<agm-map [latitude]="latitude" [longitude]="longitude" >
</agm-map>
latitude: number = 51.678418;
longitude: number = 7.809007;