Java Code Examples for org.osmdroid.tileprovider.tilesource.TileSourceFactory#DEFAULT_TILE_SOURCE
The following examples show how to use
org.osmdroid.tileprovider.tilesource.TileSourceFactory#DEFAULT_TILE_SOURCE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MapView.java From android_frameworks_mapsv1 with Apache License 2.0 | 5 votes |
public WrappedMapView(Context context, AttributeSet attrs) { super(context, new CustomResourceProxyImpl(context), new SafeMapTileProviderBasic(context, new SimpleRegisterReceiver(context), new SafeNetworkAvailabilityCheck(context), TileSourceFactory.DEFAULT_TILE_SOURCE), null, attrs); setMultiTouchControls(true); updateTileSource(); }
Example 2
Source File: MapView.java From osmdroid with Apache License 2.0 | 5 votes |
private ITileSource getTileSourceFromAttributes(final AttributeSet aAttributeSet) { ITileSource tileSource = TileSourceFactory.DEFAULT_TILE_SOURCE; if (aAttributeSet != null) { final String tileSourceAttr = aAttributeSet.getAttributeValue(null, "tilesource"); if (tileSourceAttr != null) { try { final ITileSource r = TileSourceFactory.getTileSource(tileSourceAttr); Log.i(IMapView.LOGTAG,"Using tile source specified in layout attributes: " + r); tileSource = r; } catch (final IllegalArgumentException e) { Log.w(IMapView.LOGTAG,"Invalid tile source specified in layout attributes: " + tileSource); } } } if (aAttributeSet != null && tileSource instanceof IStyledTileSource) { final String style = aAttributeSet.getAttributeValue(null, "style"); if (style == null) { Log.i(IMapView.LOGTAG,"Using default style: 1"); } else { Log.i(IMapView.LOGTAG,"Using style specified in layout attributes: " + style); ((IStyledTileSource<?>) tileSource).setStyle(style); } } Log.i(IMapView.LOGTAG,"Using tile source: " + tileSource.name()); return tileSource; }
Example 3
Source File: SafeMapTileFilesystemProvider.java From android_frameworks_mapsv1 with Apache License 2.0 | 4 votes |
public SafeMapTileFilesystemProvider(Context context, final IRegisterReceiver pRegisterReceiver) { this(context, pRegisterReceiver, TileSourceFactory.DEFAULT_TILE_SOURCE); }
Example 4
Source File: SafeMapTileProviderBasic.java From android_frameworks_mapsv1 with Apache License 2.0 | 4 votes |
/** * Creates a {@link SafeMapTileProviderBasic}. */ public SafeMapTileProviderBasic(final Context pContext) { this(pContext, TileSourceFactory.DEFAULT_TILE_SOURCE); }
Example 5
Source File: MapTileAssetsProvider.java From osmdroid with Apache License 2.0 | 4 votes |
public MapTileAssetsProvider(final IRegisterReceiver pRegisterReceiver, final AssetManager pAssets) { this(pRegisterReceiver, pAssets, TileSourceFactory.DEFAULT_TILE_SOURCE); }
Example 6
Source File: MapTileFilesystemProvider.java From osmdroid with Apache License 2.0 | 4 votes |
public MapTileFilesystemProvider(final IRegisterReceiver pRegisterReceiver) { this(pRegisterReceiver, TileSourceFactory.DEFAULT_TILE_SOURCE); }
Example 7
Source File: MapTileProviderBasic.java From osmdroid with Apache License 2.0 | 4 votes |
/** * Creates a {@link MapTileProviderBasic}. */ public MapTileProviderBasic(final Context pContext) { this(pContext, TileSourceFactory.DEFAULT_TILE_SOURCE); }
Example 8
Source File: SampleLieFi.java From osmdroid with Apache License 2.0 | 4 votes |
private MapTileProviderLieFi(final Context pContext) { this(new SimpleRegisterReceiver(pContext), new NetworkAvailabliltyCheck(pContext), TileSourceFactory.DEFAULT_TILE_SOURCE, pContext,null); }
Example 9
Source File: GeoPackageProvider.java From osmdroid with Apache License 2.0 | 4 votes |
public GeoPackageProvider(File[] db, Context context) { this(new SimpleRegisterReceiver(context), new NetworkAvailabliltyCheck(context), TileSourceFactory.DEFAULT_TILE_SOURCE, context, null, db); }