Combined arrays position text

I have a loaded image of a country and an int array with the coordinates and population of each city, and another string array with the names of the cities. I want to combine them and have the names of the cities appear in the picture in the position next to them. How could I do that? Should I select the X and Y positions?

Yes

Use the same index i e.g. for both

text(names[i], mainList[i][0], mainList [i][1]);

2 Likes

So much effort has been put to solve a similar question. Check solution 11+ of this thread.

1 Like