MapView icon indicating copy to clipboard operation
MapView copied to clipboard

How to avoid the endless scroll after the on Mapview

Open initiuminc1 opened this issue 9 years ago • 11 comments

initiuminc1 avatar Aug 11 '16 13:08 initiuminc1

@initiuminc1 if u solve this problem plz notif me

ghost avatar Aug 12 '16 15:08 ghost

@hunterand1 sure. i am trying to fix this

initiuminc1 avatar Aug 14 '16 20:08 initiuminc1

@hunterand1

on the MapView.java add the below code in onTouchEvent(MotionEvent event)

if (!withFloorPlan(event.getX(), event.getY())) {
            Log.d(TAG, "overflow");
}

now i have to find some logic to disable scroll at this point

initiuminc1 avatar Aug 15 '16 16:08 initiuminc1

hey @initiuminc1 ,

sorry, i don't understand you. what means endless scroll ? And u can tell me your detailed questions. thank u!

onlylemi avatar Aug 17 '16 08:08 onlylemi

@onlylemi in the mapview scroll doesn't stop after the map image. it is showing a white background

initiuminc1 avatar Aug 17 '16 09:08 initiuminc1

@initiuminc1 oh, i think i understand u. u can set it by yourself. when the map is disable, the onTouchEvent will not handler scroll. or u can also let the map center.

onlylemi avatar Aug 17 '16 10:08 onlylemi

@onlylemi but i need the scroll and zoom properties and need to block the scroll soon after it reach the map boundary

initiuminc1 avatar Aug 17 '16 14:08 initiuminc1

@initiuminc1 u can convert the points coordinate of map to screen by the function named convertMapXYToScreenXY(x, y). And determine whether it is in screen.

onlylemi avatar Aug 18 '16 00:08 onlylemi

@onlylemi is there any way to change the background color from white ?

initiuminc1 avatar Dec 16 '16 17:12 initiuminc1

@onlylemi I just need a work around for this infinite scrolling, in my scenario If I go on zooming I keep on sticking with this infinite scroll, So help me around for this infinite scroll view. Just help me how to overcome with that.

vivektamilarasan avatar Jul 17 '17 04:07 vivektamilarasan

@vivektamilarasan do you find any work around for this issue ? I tried a lot with no solution :(

AbanoubWagdyWahib avatar Dec 31 '18 13:12 AbanoubWagdyWahib