I have an Osmdroid MapView. Even though I have set
the map can still be moved around. Is there a simple way to disable all interactions with the map view?
on 01/19/2013 – Made popular on 01/19/2013
I have a MapView and after every Touch on the Screen I have to load a while (fetching data out of the sqllite database or connecting to an wms server and geting a png file). If the User do not know it is loading he maybe move 2-3 times and the Device will stuck..
Now I wanna do these loading operations Async and while they are loading I woud like to vizualize the loading in a propriate way.
I'm doing some work with OSM maps and its MapView supports an OnItemGestureListener for single and long presses for items placed on the MapView. I'm trying to come up with a way to display a context menu for an item when long pressed (e.g. a list of commands). I can't use the usual Activity onCreateContextMenu approach because I don't have a View to registerForContextMenu() with.
I'm using OSMDroid to display my own maptiles and I have some of my own touch gestures. I want my map to zoom by pinching, which could be easily achieved using mapView.setMultiTouchControls(true). I only want my map not to do anything besides zooming when there are 2 or more fingers on screen (I'd like to cancel any ongoing touch gestures when second finger appears on the screen).
I was wondering if anyone had a clue how I could have an onTouch listener on two views where they overlap.
ie I have a mapView and a custom view on top and I need the an object to appear/disappear when the mapView is scrolling/stops scrolling and then when the user touches the custom view it changes activities.