public class BingAerialTileSource extends AbstractTMSTileSource
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BingAerialTileSource.Attribution |
| Modifier and Type | Field and Description |
|---|---|
private static String |
API_KEY |
private static Future<List<BingAerialTileSource.Attribution>> |
attributions |
private String |
brandLogoUri |
private static Pattern |
culturePattern |
private static Integer |
imageryZoomMax |
private static String |
imageUrlTemplate |
private static Pattern |
quadkeyPattern |
private static Pattern |
subdomainPattern |
private static String[] |
subdomains |
baseUrl, id, name, osmMercator, tileSizeattributionImage, attributionImageURL, attributionLinkURL, attributionText, termsOfUseText, termsOfUseURL| Constructor and Description |
|---|
BingAerialTileSource()
Constructs a new
BingAerialTileSource. |
BingAerialTileSource(TileSourceInfo info)
Constructs a new
BingAerialTileSource. |
| Modifier and Type | Method and Description |
|---|---|
private static String |
computeQuadTree(int zoom,
int tilex,
int tiley) |
protected List<BingAerialTileSource.Attribution> |
getAttribution() |
Image |
getAttributionImage() |
String |
getAttributionImageURL() |
String |
getAttributionLinkURL() |
protected Callable<List<BingAerialTileSource.Attribution>> |
getAttributionLoaderCallable() |
String |
getAttributionText(int zoom,
ICoordinate topLeft,
ICoordinate botRight) |
protected URL |
getAttributionUrl() |
int |
getMaxZoom()
Specifies the maximum zoom value.
|
String |
getTermsOfUseText() |
String |
getTermsOfUseURL() |
String |
getTileUrl(int zoom,
int tilex,
int tiley)
Constructs the tile url.
|
protected List<BingAerialTileSource.Attribution> |
parseAttributionText(InputSource xml) |
boolean |
requiresAttribution() |
getBaseUrl, getDefaultTileSize, getDistance, getExtension, getId, getMetadata, getMinZoom, getName, getTileId, getTilePath, getTileSize, getTileXMax, getTileXMin, getTileYMax, getTileYMin, isNoTileAtZoom, latLonToTileXY, latLonToTileXY, latLonToXY, latLonToXY, tileXYToLatLon, tileXYToLatLon, tileXYToLatLon, toString, xyToLatLon, xyToLatLonsetAttributionImage, setAttributionImageURL, setAttributionLinkURL, setAttributionText, setTermsOfUseText, setTermsOfUseURLprivate static final String API_KEY
private static volatile Future<List<BingAerialTileSource.Attribution>> attributions
private static String imageUrlTemplate
private static Integer imageryZoomMax
private static String[] subdomains
private static final Pattern subdomainPattern
private static final Pattern quadkeyPattern
private static final Pattern culturePattern
private String brandLogoUri
public BingAerialTileSource()
BingAerialTileSource.public BingAerialTileSource(TileSourceInfo info)
BingAerialTileSource.info - imagery infopublic String getTileUrl(int zoom, int tilex, int tiley) throws IOException
TileSourcegetTileUrl in interface TileSourcegetTileUrl in class AbstractTMSTileSourcezoom - zoom leveltilex - X coordinatetiley - Y coordinateIOException - if any I/O error occursprotected URL getAttributionUrl() throws MalformedURLException
MalformedURLExceptionprotected List<BingAerialTileSource.Attribution> parseAttributionText(InputSource xml) throws IOException
IOExceptionpublic int getMaxZoom()
TileSourceTileSource.getMaxZoom()].getMaxZoom in interface TileSourcegetMaxZoom in class AbstractTMSTileSourceJMapViewer.MAX_ZOOMpublic boolean requiresAttribution()
requiresAttribution in interface AttributedrequiresAttribution in class AbstractTileSourcepublic String getAttributionLinkURL()
getAttributionLinkURL in interface AttributedgetAttributionLinkURL in class AbstractTileSourcepublic Image getAttributionImage()
getAttributionImage in interface AttributedgetAttributionImage in class AbstractTileSourcepublic String getAttributionImageURL()
getAttributionImageURL in interface AttributedgetAttributionImageURL in class AbstractTileSourcepublic String getTermsOfUseText()
getTermsOfUseText in interface AttributedgetTermsOfUseText in class AbstractTileSourcepublic String getTermsOfUseURL()
getTermsOfUseURL in interface AttributedgetTermsOfUseURL in class AbstractTileSourceprotected Callable<List<BingAerialTileSource.Attribution>> getAttributionLoaderCallable()
protected List<BingAerialTileSource.Attribution> getAttribution()
public String getAttributionText(int zoom, ICoordinate topLeft, ICoordinate botRight)
getAttributionText in interface AttributedgetAttributionText in class AbstractTileSourcezoom - The optional zoom level for the view.topLeft - The top left of the bounding box for attribution.botRight - The bottom right of the bounding box for attribution.private static String computeQuadTree(int zoom, int tilex, int tiley)