You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am displaying isochrons on Google Maps or Apple Maps using react-native (using react-native-maps). I have about 10 isochrons and displaying them slows down dragging and zoom in/out. The polygons also take a lot of memory (200 to 300 MB).
For now, I am downsampling the isochron data by keeping one set of coordinates every 5. I get a significant speed-up in user experience and the memory usage is down to 100 MB. The only (minor) issue is that there can be display artifacts (discrepancies) between the holes of an isochron and the polygons of the one that fill up that hole.
Maybe we can just limit the resolution of the circles. 180 points for a circle may be a bit too much. 60 may be enough.
For your specific problem (ie not the download time, but the performances on the device), some libs simplify the polygon. Leaflet do that for example. You can look at http://en.wikipedia.org/wiki/Douglas-Peucker_algorithm for a classic algorithm to handle that.
It would be great if the isochrons had a precision parameter, so that their size could be reduced by lowering the precision.
The text was updated successfully, but these errors were encountered: