public class BingAerialTileSource extends TMSTileSource
Modifier and Type | Class and Description |
---|---|
protected static class |
BingAerialTileSource.Attribution |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
API_KEY |
private static java.util.concurrent.Future<java.util.List<BingAerialTileSource.Attribution>> |
attributions |
private java.lang.String |
brandLogoUri |
private static java.util.regex.Pattern |
culturePattern |
private static java.lang.Integer |
imageryZoomMax |
private static java.lang.String |
imageUrlTemplate |
private static java.util.regex.Pattern |
quadkeyPattern |
private static java.util.regex.Pattern |
subdomainPattern |
private static java.lang.String[] |
subdomains |
maxZoom, minZoom, osmMercator
baseUrl, id, name, 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 java.lang.String |
computeQuadTree(int zoom,
int tilex,
int tiley) |
protected java.util.List<BingAerialTileSource.Attribution> |
getAttribution() |
java.awt.Image |
getAttributionImage() |
java.lang.String |
getAttributionImageURL() |
java.lang.String |
getAttributionLinkURL() |
protected java.util.concurrent.Callable<java.util.List<BingAerialTileSource.Attribution>> |
getAttributionLoaderCallable() |
java.lang.String |
getAttributionText(int zoom,
ICoordinate topLeft,
ICoordinate botRight) |
protected java.net.URL |
getAttributionUrl() |
int |
getMaxZoom()
Specifies the maximum zoom value.
|
java.lang.String |
getTermsOfUseText() |
java.lang.String |
getTermsOfUseURL() |
java.lang.String |
getTileUrl(int zoom,
int tilex,
int tiley)
Constructs the tile url.
|
protected java.util.List<BingAerialTileSource.Attribution> |
parseAttributionText(org.xml.sax.InputSource xml) |
boolean |
requiresAttribution() |
getDistance, getMinZoom, latLonToTileXY, latLonToXY, tileXYToLatLon, xyToLatLon
getBaseUrl, getDefaultTileSize, getExtension, getId, getMetadata, getName, getTileId, getTilePath, getTileSize, getTileXMax, getTileXMin, getTileYMax, getTileYMin, isNoTileAtZoom, latLonToTileXY, latLonToXY, tileXYToLatLon, tileXYToLatLon, toString, xyToLatLon
setAttributionImage, setAttributionImageURL, setAttributionLinkURL, setAttributionText, setTermsOfUseText, setTermsOfUseURL
private static final java.lang.String API_KEY
private static volatile java.util.concurrent.Future<java.util.List<BingAerialTileSource.Attribution>> attributions
private static java.lang.String imageUrlTemplate
private static java.lang.Integer imageryZoomMax
private static java.lang.String[] subdomains
private static final java.util.regex.Pattern subdomainPattern
private static final java.util.regex.Pattern quadkeyPattern
private static final java.util.regex.Pattern culturePattern
private java.lang.String brandLogoUri
public BingAerialTileSource()
BingAerialTileSource
.public BingAerialTileSource(TileSourceInfo info)
BingAerialTileSource
.info
- imagery infopublic java.lang.String getTileUrl(int zoom, int tilex, int tiley) throws java.io.IOException
TileSource
getTileUrl
in interface TileSource
getTileUrl
in class AbstractTMSTileSource
zoom
- zoom leveltilex
- X coordinatetiley
- Y coordinatejava.io.IOException
- if any I/O error occursprotected java.net.URL getAttributionUrl() throws java.net.MalformedURLException
java.net.MalformedURLException
protected java.util.List<BingAerialTileSource.Attribution> parseAttributionText(org.xml.sax.InputSource xml) throws java.io.IOException
java.io.IOException
public int getMaxZoom()
TileSource
TileSource.getMaxZoom()
].getMaxZoom
in interface TileSource
getMaxZoom
in class TMSTileSource
JMapViewer.MAX_ZOOM
public boolean requiresAttribution()
requiresAttribution
in interface Attributed
requiresAttribution
in class AbstractTileSource
public java.lang.String getAttributionLinkURL()
getAttributionLinkURL
in interface Attributed
getAttributionLinkURL
in class AbstractTileSource
public java.awt.Image getAttributionImage()
getAttributionImage
in interface Attributed
getAttributionImage
in class AbstractTileSource
public java.lang.String getAttributionImageURL()
getAttributionImageURL
in interface Attributed
getAttributionImageURL
in class AbstractTileSource
public java.lang.String getTermsOfUseText()
getTermsOfUseText
in interface Attributed
getTermsOfUseText
in class AbstractTileSource
public java.lang.String getTermsOfUseURL()
getTermsOfUseURL
in interface Attributed
getTermsOfUseURL
in class AbstractTileSource
protected java.util.concurrent.Callable<java.util.List<BingAerialTileSource.Attribution>> getAttributionLoaderCallable()
protected java.util.List<BingAerialTileSource.Attribution> getAttribution()
public java.lang.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 java.lang.String computeQuadTree(int zoom, int tilex, int tiley)