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, tileSize
attributionImage, 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, xyToLatLon
setAttributionImage, setAttributionImageURL, setAttributionLinkURL, setAttributionText, setTermsOfUseText, setTermsOfUseURL
private 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
TileSource
getTileUrl
in interface TileSource
getTileUrl
in class AbstractTMSTileSource
zoom
- zoom leveltilex
- X coordinatetiley
- Y coordinateIOException
- if any I/O error occursprotected URL getAttributionUrl() throws MalformedURLException
MalformedURLException
protected List<BingAerialTileSource.Attribution> parseAttributionText(InputSource xml) throws IOException
IOException
public int getMaxZoom()
TileSource
TileSource.getMaxZoom()
].getMaxZoom
in interface TileSource
getMaxZoom
in class AbstractTMSTileSource
JMapViewer.MAX_ZOOM
public boolean requiresAttribution()
requiresAttribution
in interface Attributed
requiresAttribution
in class AbstractTileSource
public String getAttributionLinkURL()
getAttributionLinkURL
in interface Attributed
getAttributionLinkURL
in class AbstractTileSource
public Image getAttributionImage()
getAttributionImage
in interface Attributed
getAttributionImage
in class AbstractTileSource
public String getAttributionImageURL()
getAttributionImageURL
in interface Attributed
getAttributionImageURL
in class AbstractTileSource
public String getTermsOfUseText()
getTermsOfUseText
in interface Attributed
getTermsOfUseText
in class AbstractTileSource
public String getTermsOfUseURL()
getTermsOfUseURL
in interface Attributed
getTermsOfUseURL
in class AbstractTileSource
protected Callable<List<BingAerialTileSource.Attribution>> getAttributionLoaderCallable()
protected List<BingAerialTileSource.Attribution> getAttribution()
public String getAttributionText(int zoom, ICoordinate topLeft, ICoordinate botRight)
getAttributionText
in interface Attributed
getAttributionText
in class AbstractTileSource
zoom
- 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)