avlsocialconnect / osmdroid

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

Tile disappear on Zoom In and Zoom Out in offline mode #400

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have tiles of an area from 11 to 14 placed on the sdcard
2. I have set min max levels in BitmapTileSourceBase
3. Now on Zoom in Or Zoom Out, the rendering of tiles are not smooth.

What is the expected output? What do you see instead?
On zoom in or zoom out, the tiles must rendered properly.
The problem is on Zooming from 11 to 12 the tile goes out of the visible 
screen,on touching the screen again i get the zoomed tile

What version of the product are you using? On what operating system?
3.0.8 on WIN7

Please provide any additional information below.
I have placed the code for reference.
        File aFile = new File(path + "/osmdroid/abc.zip");
        IArchiveFile[] myArchives = new IArchiveFile[1];
        myArchives[0] = ArchiveFileFactory.getArchiveFile(aFile);
        MapView zlMapView = (MapView) inflate
                .findViewById(R.id.mapview);
        zlMapView.setTileSource(TileSourceFactory.MAPQUESTOSM);
        zlMapView.setBuiltInZoomControls(true);
        zlMapView.getController().setZoom(11);
        mapView.getController().setZoom(11);
//points stuttgart
        GeoPoint geoPoint = new GeoPoint((int) (48.777066 * 1E6),
                (int) (9.164408 * 1E6));
        mapView.getController().setCenter(geoPoint);
        mapView.setMultiTouchControls(true);
//Just Extends BitmapTileSourceBase
        MyTileSource myTiles = new MyTileSource("MapQuest", null, 11, 14, 256,".jpg");

        MapTileModuleProviderBase[] myProviders = new MapTileModuleProviderBase[2];

        myProviders[0] = new MapTileFileArchiveProvider(
                new SimpleRegisterReceiver(this), myTiles, myArchives);
        myProviders[1] = new MapTileDownloader(TileSourceFactory.MAPQUESTOSM);
        mapView.setUseDataConnection(false);
        mapView.setTileSource(TileSourceFactory.MAPQUESTOSM);

        MapTileProviderArray myTileProvider = new MapTileProviderArray(myTiles,
                null, myProviders);
        TilesOverlay tilesOverlay = new TilesOverlay(myTileProvider,getApplicationContext());
        mapView.getOverlays().add(tilesOverlay);
        mapView.invalidate();
        setContentView(mapView);

Original issue reported on code.google.com by reachpun...@gmail.com on 13 Feb 2013 at 8:18

GoogleCodeExporter commented 9 years ago
Duplicate of issue 289 (?)

Original comment by notdiffi...@gmx.net on 23 Nov 2013 at 2:08