I have a service that will give me Locations of recent earthquake events. I want to use the said Lat&Long as the center of a circle in Angular Google Maps. How do I do this?
These are the data from the API call:
0:
--geometry:
---coordinates: Array(3)
----0: (Lat here)
----1: (Long here)
----2: (additional numbers here)
---length: 3
-- id
--propertries
--type `
I have tried these:
*ngFor="let eqdata of data" [latitude]="eqdata.geometry.coordinates.0" [longitude]="eqdata.geometry.coordinates.1"
&
*ngFor="let eqdata of data" [latitude]="eqdata.geometry.coordinates[0]" [longitude]="eqdata.geometry.coordinates[1]"
Is the syntax wrong? I am new to ionic and would really appreciate any kind of help!
Edit: added the full Data Structure from the API
Edit: Link for data Structure: https://i.stack.imgur.com/vW6Fr.jpg