If I understand the question correctly, changing markersList[i].currentNetwork
to markersList[i][currentNetwork]
should solve this.
1
solved Accessing JSON key/value
If I understand the question correctly, changing markersList[i].currentNetwork
to markersList[i][currentNetwork]
should solve this.
1
solved Accessing JSON key/value