MapView with ItemizedOverlay and Map Scrolling

I have a problem with a custom ItemizedOverlay on a MapView in Android.

What I did: A very simple offspring of the ItemizedOverlay class, which only wraps my own item types and uses ItemizedOverlay for all the hard work.

What works: Almost everything - elements are drawn correctly, I can click them, etc.

Problem: If I drag the card in the form of the card itself, I can scroll it without problems. But if I try to start moving the map one of the elements from my overlay (for example, "dragging the map over the element"), it does not move.

This is really a problem because if I have the β€œa little bigger” elements, it is impossible to drag the map (without zooming out and grabbing the map outside the elements).

This problem occurs even if I do not handle any events created by ItemizedOverlay (for example, with onTap () commented out in my overlay).

Any advice would be appreciated.

+4
source share
1 answer

OK, we solved this problem.

But the only solution we found was our own version of "ItemizedOverlay" (without inheritance). For instance. we draw our own overlay and we handle the "click events".

+2
source

All Articles