Albert
Albert

Reputation: 67

OsmDroid marker not visible

I put some marker on MapView and I try to set ZoomLevel 22, but the markers are not visible. If I set ZoomLevel to 21, markers are visible. How can I solve ?

Upvotes: 0

Views: 370

Answers (1)

spy
spy

Reputation: 3258

Where did you search before posting this question? Obviously we (I'm one of the osmdroid maintainers) missed something in the documentation to make this issue more obvious. It's been asked many times on SO and I'll happily take the points. It's also asked several times a month on the issue tracker and it's in the FAQ. So, please help us improve.

On to the real answer. Bottom line is that it's a known limitation of osmdroid caused by integer overflow at zoom levels greater than 20. At 20, you're generally ok, but past 20, all map data may disappear or appear in the wrong location. The map may also fling off to the north pole to generally to a location that's unexpected.

Upvotes: 1

Related Questions