jifalops / dart-latlong

Other
47 stars 21 forks source link

LatLngBounds grow by distance/buffer #14

Open Leffe108 opened 9 months ago

Leffe108 commented 9 months ago

I don't know if it would be outside the scope of this library, but I have situations related to flutter_map where I grab the LatLngBounds of FlutterMap-view to filter vector data from a source and would like to load a bit more than just the viewport so if user pans around a bit, it is already loaded, but also not loading the entire world.

For that something that can grow LatLngBounds in all directions would be helpful. Although I understand it then becomes a matter of what projection is used, distance units and might make it to complicated for the scope of this library? But for my use case even just growing it by X % would be enough as it is not a precise buffer operation, just to manage buffering of data.