Closed flaneuse closed 4 years ago
Would attaching a geoJSON record to every record at all admin levels on the api along with outbreak-info/outbreak.info#133 fix this issue?
Yep, that's the idea! I just don't know if the retrieval time of each geojson is faster than loading the geojson once on the front-end and then doing a front-end join. i assume so...
See outbreak-info/outbreak.info#134
Currently, the choropleths at outbreak.info/maps are loaded as geojsons by the front-end and then merged with the result of an API call client-side. Obviously, this puts a load on the front-end, and the join can't be cached for subsequent calls.