本文整理匯總了Java中org.mapsforge.map.layer.download.tilesource.TileSource類的典型用法代碼示例。如果您正苦於以下問題:Java TileSource類的具體用法?Java TileSource怎麽用?Java TileSource使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
TileSource類屬於org.mapsforge.map.layer.download.tilesource包,在下文中一共展示了TileSource類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createTileDownloadLayer
import org.mapsforge.map.layer.download.tilesource.TileSource; //導入依賴的package包/類
@SuppressWarnings("unused")
private Layer createTileDownloadLayer(TileCache tileCache,
MapViewPosition mapViewPosition) {
TileSource tileSource = OpenStreetMapMapnik.INSTANCE;
TileDownloadLayer tileDownloadLayer = new TileDownloadLayer(tileCache,
mapViewPosition, tileSource, GRAPHIC_FACTORY);
tileDownloadLayer.start();
return tileDownloadLayer;
}