Can you share any details of the tech stack? What maps are you using? Openstreetmap?
For easy reading:
- Frontend: React 18 + Vite, React Router
- Map: Leaflet, lazy-loaded when the tool page mounts
- Base tiles: OpenStreetMap raster tiles (free, no key)
- Geocoding: Nominatim (US-restricted), only for typed address searches
- County boundaries: US Census TopoJSON (~0.8 MB), self-hosted, decoded client-side with topojson-client
- Click-to-county: local ray-casting point-in-polygon - no API call
- County lines/labels only render for the visible viewport past a zoom threshold