How to avoid the endless scroll after the on Mapview
@initiuminc1 if u solve this problem plz notif me
@hunterand1 sure. i am trying to fix this
@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
hey @initiuminc1 ,
sorry, i don't understand you. what means endless scroll ? And u can tell me your detailed questions. thank u!
@onlylemi in the mapview scroll doesn't stop after the map image. it is showing a white background
@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 but i need the scroll and zoom properties and need to block the scroll soon after it reach the map boundary
@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 is there any way to change the background color from white ?
@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 do you find any work around for this issue ? I tried a lot with no solution :(