Search code examples
androidopenstreetmaposmdroid

Cannot move the map using OsmDroid 3.0.10


After updating to the latest library version the map isn't scrollable anymore. The only controls that work are zoom in/out.

this.mMapView = (MapView) findViewById(R.id.mapview);
this.mMapView.setUseSafeCanvas(true);
this.registerForContextMenu(mMapView);
this.mMapView.setBuiltInZoomControls(true);
this.mMapView.setMultiTouchControls(true);
this.mMapView.setClickable(true);
this.mMapView.setTileSource(TileSourceFactory.MAPNIK);

Solution

  • I tried to remove the line, without success:

     this.mMapView.setClickable(true);
    

    It was also necessary removing the following line:

    this.registerForContextMenu(mMapView);