Here's some highlights:
๐ Unbounded horizontal scrolling - #1948 & #1969 by monsieurtanuki
We're repeating the trend from v7, and introducing yet another feature that's been continuously requested for longer than we can remember ๐.
Thanks to the hard work of external contributors, you can now pan and fling across the anti-meridian as much as you want (when using the default map projection only). Polygons and polylines also cross the boundary without issues as well, and, alongside markers, will appear on all 'worlds'.
This is the first bounty-funded pull request to flutter_map, thanks to our generous Supporters! We hope to open more bounties in future, but you can also add a bounty on a PR as well (just contact us).
Keyboard controls for map gestures - #1987
Maybe not quite as highly requested as horizontal scrolling, but we think keyboard controls were missing, a fairly obvious hole on desktop and web platforms. So we've added them!
Supports arrow & WASD
keys for panning, QE
keys for rotation, and RF
keys for zoom. All key handlers are based on the physical layout of the QWERTY keyboard, so users using other keyboards will be able to use whichever keys are physically located in the same position. These are all optionally controllable via KeyboardOptions
for MapOptions
- only arrow keys are enabled by default.
(If you were using flutter_map for developing a game for some reason, this might also be useful ๐)
We've also fixed a major performance bug with simplification on Polygon/lineLayer
s. If you previously disabled simplification to workaround the bug and improve performance, we recommend considering re-enabling it.
We've also made other changes to improve the experience for your users. Checkout the CHANGELOG for the curated changes, and the full commit listing for all the small details.
Migrating to v8 should be pain-free for most apps, but some major changes are likely for plugins.
Some breaking changes have been made. The amount of migration required will depend on how much your project uses more advanced functionality. Basic apps are unlikely to require migration.