Open GoogleCodeExporter opened 8 years ago
The code below shows how I use this. I do use a dataconnection however.
This works well for me, except for issue 326.
==========
public static final OnlineTileSourceBase FIETS_OVERLAY_NL = new XYTileSource("Fiets",
null, 3, 18, 256, ".png",
"http://overlay.openstreetmap.nl/openfietskaart-overlay/");
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// Google map base layer
this.mapView = (MapView) findViewById(R.id.mapview);
this.mapView.setBuiltInZoomControls(true);
this.mapController = mapView.getController();
// Add tiles layer
this.mProvider = new MapTileProviderBasic(getApplicationContext());
this.mProvider.setTileSource(FIETS_OVERLAY_NL);
this.mTilesOverlay = new GoogleTilesOverlay(this.mProvider, this.getBaseContext());
this.mapView.getOverlays().add(0, this.mTilesOverlay);
this.mapView.invalidate();
}
==========
Original comment by alex.vanderlinden
on 25 Mar 2012 at 6:57
Original issue reported on code.google.com by
nikhil.s...@gmail.com
on 16 Mar 2012 at 4:06