p-lr / MapCompose

A fast, memory efficient Jetpack Compose library to display tiled maps, with support for markers, paths, and rotation.
Apache License 2.0
224 stars 20 forks source link

Add carousel effect #119

Open kmbisset89 opened 4 months ago

kmbisset89 commented 4 months ago

I would like to have the ability to infinitely scroll the map so that it does behave like a globe.

p-lr commented 4 months ago

I'm curious to know about the use case. Is the map a complete world representation?

This requires significant changes in how the library works internally. Also, in a flat space, how far would we be able to zoom out?

kmbisset89 commented 4 months ago

I believe you would be able to hit the MinimumScaleType.Fill condition and then enable the feature. This feature may also require that scale type to allow for the calculations for offset.

kmbisset89 commented 4 months ago

For the complete world representing question, I was playing with the demo of the osm and some lower res layers and saw the world but this where like other map systems would allow me to pan. If I plot a flight map I would have to zoom to the other side of the map.