Search code examples
androidgoogle-maps-android-api-2osmdroid

Osmdroid and Google Satellite demo


After searching quite a bit,

What is the easiest way to show Google Satellite info via Osmdroid?

I see GoogleWrapper Bing? MapQuestArial?

Can you show good examples?


Solution

  • How to show nice Satellite maps in osmdroid?

    With MapQuestAerial, min zoom level is 11 => you cannot zoom-in close enough, it's useless.

    I would recommend MapBox Satellite. It rules! Roma - St Peter placehttp://osmbonuspack.googlecode.com/svn/BonusPackDownloads/img/osmbonuspackdemo_10_1.png

    Usage:

    MapBoxTileSource.retrieveMapBoxMapId(this);
    OnlineTileSourceBase MAPBOXSATELLITELABELLED = new MapBoxTileSource("MapBoxSatelliteLabelled", ResourceProxy.string.mapquest_aerial, 1, 19, 256, ".png");
    TileSourceFactory.addTileSource(MAPBOXSATELLITELABELLED);
    map.setTileSource(MAPBOXSATELLITELABELLED);
    

    and in your Manifest:

    <meta-data android:name="MAPBOX_MAPID" android:value="...YOUR MAPBOX MAP ID..." />
    

    I never tried Bing Satellite.