org.osmdroid.tileprovider.tilesource.XYTileSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of osmdroid-android Show documentation
Show all versions of osmdroid-android Show documentation
An Android library to display OpenStreetMap views.
package org.osmdroid.tileprovider.tilesource;
import org.osmdroid.ResourceProxy.string;
import org.osmdroid.tileprovider.MapTile;
public class XYTileSource extends OnlineTileSourceBase {
public XYTileSource(final String aName, final string aResourceId, final int aZoomMinLevel,
final int aZoomMaxLevel, final int aTileSizePixels, final String aImageFilenameEnding,
final String... aBaseUrl) {
super(aName, aResourceId, aZoomMinLevel, aZoomMaxLevel, aTileSizePixels,
aImageFilenameEnding, aBaseUrl);
}
@Override
public String getTileURLString(final MapTile aTile) {
return getBaseUrl() + aTile.getZoomLevel() + "/" + aTile.getX() + "/" + aTile.getY()
+ mImageFilenameEnding;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy