public final class OpenStreetMapImageGlobeOverlay extends CustomImageGlobeOverlay
CustomImageGlobeOverlay
that uses data from an OpenStreetMap server.Constructor and Description |
---|
OpenStreetMapImageGlobeOverlay()
Initializes a new instance, using the default server and the entire Earth's extent.
|
OpenStreetMapImageGlobeOverlay(CartographicExtent extent)
Initializes an
OpenStreetMapImageGlobeOverlay with the provided values. |
OpenStreetMapImageGlobeOverlay(CartographicExtent extent,
Proxy proxy)
Initializes an
OpenStreetMapImageGlobeOverlay with the provided values. |
OpenStreetMapImageGlobeOverlay(Proxy proxy)
Initializes a new instance, using the default server and the entire Earth's extent
using the specified proxy.
|
OpenStreetMapImageGlobeOverlay(String server)
Initializes an
OpenStreetMapImageGlobeOverlay with the provided values. |
OpenStreetMapImageGlobeOverlay(String server,
CartographicExtent extent)
Initializes an
OpenStreetMapImageGlobeOverlay with the provided values. |
OpenStreetMapImageGlobeOverlay(String server,
CartographicExtent extent,
Proxy proxy)
Initializes an
OpenStreetMapImageGlobeOverlay with the provided values. |
OpenStreetMapImageGlobeOverlay(String server,
Proxy proxy)
Initializes an
OpenStreetMapImageGlobeOverlay with the provided values. |
Modifier and Type | Method and Description |
---|---|
Proxy |
getProxy()
Gets the proxy used for web requests.
|
URI |
getUri()
Gets the URI of the OpenStreetMap server.
|
boolean |
read(CartographicExtent extent,
Object userTileData,
BufferedImage image)
Reads a tile from the specified
extent , scales it to and stores the result in image . |
clearCache, dispose, getExtent, getIsTranslucent, getMaximumMetersPerPixel, getProjection, getTiler, reload, setExtent, setIsTranslucent, setMaximumMetersPerPixel, setProjection, setTiler, shutDown, shuttingDown, startingUp, startUp
getAltitudeBasedTranslucencyLowerAltitude, getAltitudeBasedTranslucencyLowerTranslucency, getAltitudeBasedTranslucencyUpperAltitude, getAltitudeBasedTranslucencyUpperTranslucency, getMoreThanOneImageGlobeOverlaySupported, getTranslucency, getUseAltitudeBasedTranslucency, setAltitudeBasedTranslucencyLowerAltitude, setAltitudeBasedTranslucencyLowerTranslucency, setAltitudeBasedTranslucencyUpperAltitude, setAltitudeBasedTranslucencyUpperTranslucency, setTranslucency, setUseAltitudeBasedTranslucency
dispose, getCentralBody, getDisplayCondition, getIsValid, getRole, getTag, setDisplayCondition, setTag
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, dispose
public OpenStreetMapImageGlobeOverlay()
public OpenStreetMapImageGlobeOverlay(Proxy proxy)
proxy
- The proxy to use.public OpenStreetMapImageGlobeOverlay(CartographicExtent extent)
OpenStreetMapImageGlobeOverlay
with the provided values.extent
- The extent of the overlay.public OpenStreetMapImageGlobeOverlay(CartographicExtent extent, Proxy proxy)
OpenStreetMapImageGlobeOverlay
with the provided values.extent
- The CartographicExtent
of the overlay.proxy
- The proxy to use.public OpenStreetMapImageGlobeOverlay(String server)
OpenStreetMapImageGlobeOverlay
with the provided values.server
- The server to use.public OpenStreetMapImageGlobeOverlay(String server, Proxy proxy)
OpenStreetMapImageGlobeOverlay
with the provided values.server
- The server to use.proxy
- The proxy to use.public OpenStreetMapImageGlobeOverlay(String server, CartographicExtent extent)
OpenStreetMapImageGlobeOverlay
with the provided values.server
- The server to use.extent
- The CartographicExtent
of the overlay.public OpenStreetMapImageGlobeOverlay(String server, CartographicExtent extent, Proxy proxy)
OpenStreetMapImageGlobeOverlay
with the provided values.server
- The server to use.extent
- The CartographicExtent
of the overlay.proxy
- The proxy to use.public boolean read(CartographicExtent extent, Object userTileData, BufferedImage image)
extent
, scales it to and stores the result in image
.read
in class CustomImageGlobeOverlay
extent
- The extent of the tile.userTileData
- User specified tile data for the tile. This will only be provided if Tiler
(get
/ set
) is not null
.image
- A preallocated bitmap that the tile should be drawn to. Read should always overwrite the entire contents of the image.true
if the read was successful, false
otherwise.public final Proxy getProxy()
public URI getUri()
getUri
in class CustomImageGlobeOverlay