I need assistance with utilizing location data from recent earthquake events to center a circle on Angular Google Maps. Can anyone provide guidance on how to achieve this?
The API call provides the following data:
0:
--geometry:
---coordinates: Array(3)
----0: (Latitude)
----1: (Longitude)
----2: (additional numbers)
---length: 3
-- id
--properties
--type
I have attempted the following approaches:
*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]"
Could it be a syntax issue? Any help would be greatly appreciated as I am new to Ionic!
Edit: The complete Data Structure from the API has been added.
Edit: Here is the link to the data Structure: https://i.stack.imgur.com/vW6Fr.jpg