Pradhi11 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

No user interaction with 3.0.9 #415

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,
I have an issue with the new release of OSMDroid 3.0.9.
I've developed an application based on 3.0.8 which is working great but with 
OutOfMemoryException.
I hoped that the new release fix those exceptions but I have another critical 
issue.
Since I've upgraded the lib, without touching any code, I'm not able to pan on 
my mapView. I can zoom in/out with my two fingers but I can't move on it.

Find below the code I use to initialize my MapView.

Thanks for your replies.

Bruno.

mapView.setUseDataConnection(true);
mapView.getOverlays().clear();

mapView.setTileSource(new OnlineTileSourceBase(Config.TILE_NAME, 
ResourceProxy.string.unknown, minZoom, Config.TILE_ZOOM_MAX_LEVEL, 
Config.TILE_SIZE_PIXEL, Config.TILE_FILE_NAME_ENDING, Config.TILE_PREFIX) {
    @Override
    public String getTileURLString(final MapTile aTile) {

        return getBaseUrl() + Config.TILE_SEPARATOR + aTile.getZoomLevel() + Config.TILE_SEPARATOR + aTile.getX() + Config.TILE_SEPARATOR + aTile.getY();
    }
});

mapView.setBuiltInZoomControls(false);
mapView.setMultiTouchControls(true);
mapView.setEnabled(true);
mapView.getController().setZoom(Config.MAP_DEFAULT_ZOOM);
mResourceProxy = new ResourceProxyImpl(getApplicationContext());

// USER LOCATION
mLocationOverlay = new NewLocationOverLay(this, mapView, mResourceProxy);
mLocationOverlay.enableMyLocation();
mLocationOverlay.enableFollowLocation();
mLocationOverlay.setLocationUpdateMinDistance(Config.LOCATION_DISTANCE_UPDATE);
mLocationOverlay.setLocationUpdateMinTime(Config.LOCATION_TIME_UPDATE);
mapView.getOverlays().add(mLocationOverlay);

Original issue reported on code.google.com by bunob...@gmail.com on 2 Apr 2013 at 12:25

GoogleCodeExporter commented 9 years ago
Please see issue 387. You likely have some click handler on the map view itself 
which is interfering with the ability for the maps gesture detectors to do 
their job.

Original comment by kurtzm...@gmail.com on 2 Apr 2013 at 3:07

GoogleCodeExporter commented 9 years ago
Do you have:

android:clickable="true"

set on your MapView? Try removing it and see if that helps.

Original comment by kurtzm...@gmail.com on 6 Apr 2013 at 2:49

GoogleCodeExporter commented 9 years ago
I had the same issue when moving from 3.0.8 to 3.0.9.

-Removing-

android:clickable="true"

helped me. Thanks for the tip!

Original comment by jopvanra...@gmail.com on 10 Apr 2013 at 12:52

GoogleCodeExporter commented 9 years ago
I had also the same issue when moving from 3.0.8 to 3.0.9.
The problem was because I registered the mapview for context menu.

I fixed it by registering the mapview's parent.

Original comment by cilia.r...@gmail.com on 21 Apr 2013 at 1:05

GoogleCodeExporter commented 9 years ago

Original comment by kurtzm...@gmail.com on 11 Jun 2013 at 1:54

GoogleCodeExporter commented 9 years ago
Issue 440 has been merged into this issue.

Original comment by kurtzm...@gmail.com on 10 Jul 2013 at 8:40