Hello, I'm making an app that involves the user pressing on a part of a map to zoom in to a specific county of Massachusetts in the US. I decided that using polygons to represent the counties was the way to approach this, since I can simply make it so that if the user presses on a county, which has an invisible polygon over it, the map pans to the polygon. However, I've found that the array for polygon borders of counties are extremely large to the point that I suspect the reason my app is crashing is because it simply can't process the amount. I would like some advice on solving this problem, or perhaps an alternative way to solve my original problem without using polygons.
Below is the csv file that contains the polygon coordinates.
us-county-boundaries (2).csv (860.1 KB)