public class DefaultGoogleMapsRequest extends Object implements GoogleMapsRequest
Constructor and Description |
---|
DefaultGoogleMapsRequest(GoogleMapsRequestParams params)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
downloadTile(Point center,
int zoomlevel,
int pxwidth,
int pxheight,
File file,
ICancellable cancel)
asks Google Maps for a image tile in a file
|
void |
downloadTile(Point center,
int zoomlevel,
int pxwidth,
int pxheight,
GoogleMapsRequestListener listener)
asks Google Maps for a image tile asynchronously
|
BufferedImage |
getTile(Envelope box,
int zoomlevel,
int pxwidth,
int pxheight)
Gets a map centered in an envelope
|
BufferedImage |
getTile(Point center,
int zoomlevel,
int pxwidth,
int pxheight)
asks Google Maps for a image tile
|
public DefaultGoogleMapsRequest(GoogleMapsRequestParams params)
params
- public BufferedImage getTile(Point center, int zoomlevel, int pxwidth, int pxheight) throws URLFormatException, DownloadingException
GoogleMapsRequest
getTile
in interface GoogleMapsRequest
URLFormatException
DownloadingException
public void downloadTile(Point center, int zoomlevel, int pxwidth, int pxheight, File file, ICancellable cancel) throws URLFormatException, DownloadingException
GoogleMapsRequest
downloadTile
in interface GoogleMapsRequest
URLFormatException
DownloadingException
public void downloadTile(Point center, int zoomlevel, int pxwidth, int pxheight, GoogleMapsRequestListener listener)
GoogleMapsRequest
downloadTile
in interface GoogleMapsRequest
public BufferedImage getTile(Envelope box, int zoomlevel, int pxwidth, int pxheight) throws URLFormatException, DownloadingException
GoogleMapsRequest
getTile
in interface GoogleMapsRequest
URLFormatException
DownloadingException