error: cannot find symbol GeoPackageProvider.TileSourceBounds tileSourceBounds;

7 views
Skip to first unread message

Paolo Cecchini

unread,
Mar 11, 2021, 4:38:47 PMMar 11
to osmdroid

Android Studio 4.1.2


..............

import org.osmdroid.gpkg.tiles.raster.GeoPackageProvider;
import org.osmdroid.gpkg.tiles.raster.GeopackageRasterTileSource;
import org.osmdroid.gpkg.tiles.raster.GeoPackageMapTileModuleProvider;

..................

GeoPackageProvider.TileSourceBounds tileSourceBounds;

Any hint? TYL. PaoloC

Paolo Cecchini

unread,
Mar 12, 2021, 12:20:34 PMMar 12
to osmdroid
Ok, sorted out, see getBounds() below, but please consider to remove not working code from official examples ...
Btw my map, at today, shows up on MapCache but is only grey squares with osmdroid ... let try again :)

PaoloC


} else if (strName instanceof GeopackageRasterTileSource) {

final GeopackageRasterTileSource src = (GeopackageRasterTileSource) strName;

mMapView.post(new Runnable() {

@Override

public void run() {

mMapView.getController().setZoom(src.getMinimumZoomLevel());

mMapView.setMinZoomLevel((double) src.getMinimumZoomLevel());

mMapView.setMaxZoomLevel((double) src.getMaximumZoomLevel());

mMapView.invalidate();

mMapView.zoomToBoundingBox(src.getBounds(), true);

}
});
Reply all
Reply to author
Forward
0 new messages