I’m rendering my map with markers and circles beautifully. My app use case however has me needing to retrieve values from the objects at various stages in my code.
For example:
<Circle
key={ping.ping_time}
ref={ref => { this.circles[device_index + “_” + (parseInt(index)+1)] = ref;}}
center={{ latitude : ping.latitude , longitude : ping.longitude }}
radius={ping.radius}
fillColor={radius_overlay[device_index]}
strokeColor={‘white’}
strokeWidth={0.3}
Using the reference I’ve created, I need to obtain the radius of this circle. What is the syntax to get that value by using the reference?
I expected something like this to work:
this.circles[reference_index].radius