MapCompose icon indicating copy to clipboard operation
MapCompose copied to clipboard

Add carousel effect

Open kmbisset89 opened this issue 1 year ago • 3 comments

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

kmbisset89 avatar Jul 05 '24 20:07 kmbisset89

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?

p-lr avatar Jul 10 '24 05:07 p-lr

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 avatar Jul 10 '24 09:07 kmbisset89

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.

kmbisset89 avatar Jul 10 '24 10:07 kmbisset89

Better late than never, I finally implemented infinite scroll. It required significant changes and was quite challenging. It will be available in v.3.1.0. A new "Infinite scroll" demo shows how to use it.

https://github.com/user-attachments/assets/565e7b85-7651-467e-a42b-3fff65e5b654

p-lr avatar Jul 07 '25 07:07 p-lr