public class BingAerialTileSource extends AbstractTMSTileSource
Modifier and Type | Class and Description |
---|---|
protected class |
BingAerialTileSource.Attribution |
TileSource.TileUpdate
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
attributionImage, attributionImageURL, attributionLinkURL, attributionText, termsOfUseText, termsOfUseURL
Constructor and Description |
---|
BingAerialTileSource()
Constructs a new
BingAerialTileSource . |
BingAerialTileSource(String id)
Constructs a new
BingAerialTileSource . |
Modifier and Type | Method and Description |
---|---|
(package 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,
Coordinate topLeft,
Coordinate botRight) |
protected URL |
getAttributionUrl() |
int |
getMaxZoom()
Specifies the maximum zoom value.
|
String |
getTermsOfUseText() |
String |
getTermsOfUseURL() |
TileSource.TileUpdate |
getTileUpdate() |
String |
getTileUrl(int zoom,
int tilex,
int tiley)
Constructs the tile url.
|
protected List<BingAerialTileSource.Attribution> |
parseAttributionText(InputSource xml) |
boolean |
requiresAttribution() |
getBaseUrl, getDistance, getExtension, getId, getMinZoom, getName, getTilePath, getTileSize, getTileType, latToTileY, LatToY, lonToTileX, LonToX, tileXToLon, tileYToLat, toString, XToLon, YToLat
setAttributionImage, setAttributionImageURL, setAttributionLinkURL, setAttributionText, setTermsOfUseText, setTermsOfUseURL
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(String id)
BingAerialTileSource
.public String getTileUrl(int zoom, int tilex, int tiley) throws IOException
TileSource
getTileUrl
in interface TileSource
getTileUrl
in class AbstractTMSTileSource
IOException
protected 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 TileSource.TileUpdate getTileUpdate()
TileSource.TileUpdate
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, Coordinate topLeft, Coordinate 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.static String computeQuadTree(int zoom, int tilex, int tiley)