public class GoogleMapsProvider extends TiledProvider
Modifier and Type | Field and Description |
---|---|
static int |
HYBRID
This is a satellite + road map
|
static int |
REGULAR
This is a regular road map
|
static int |
SATELLITE
This is a satellite map
|
_url, _zoomLevel
Constructor and Description |
---|
GoogleMapsProvider(String apiKey)
Google map provider Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
attribution()
The provider attribution.
|
String |
getLanguage()
Defines the language to use for display of labels on map tiles.
|
static int |
getTileSize() |
boolean |
isSensor()
Specifies whether the application requesting the static map is using a sensor to determine the user's location.
|
int |
maxZoomLevel()
Maximal zoom level.
|
void |
setLanguage(String language)
Defines the language to use for display of labels on map tiles.
|
void |
setMapType(int type)
Sets the map type
|
void |
setSensor(boolean sensor)
Specifies whether the application requesting the static map is using a sensor to determine the user's location.
|
static void |
setTileSize(int aTileSize) |
Tile |
tileFor(BoundingBox bbox)
Gets a tile for the given bounding box
|
bboxFor, scale, url
maxZoomFor, minZoomLevel, projection, tileSize, tileSize, translate
public static final int REGULAR
public static final int SATELLITE
public static final int HYBRID
public GoogleMapsProvider(String apiKey)
apiKey
- google maps api key
https://developers.google.com/maps/documentation/staticmaps/#api_keypublic static int getTileSize()
public static void setTileSize(int aTileSize)
aTileSize
- the tileSize to setpublic void setMapType(int type)
public int maxZoomLevel()
MapProvider
maxZoomLevel
in class MapProvider
public String attribution()
MapProvider
attribution
in class MapProvider
public Tile tileFor(BoundingBox bbox)
MapProvider
tileFor
in class TiledProvider
bbox
- a bounding boxpublic String getLanguage()
public void setLanguage(String language)
language
- the language to setpublic boolean isSensor()
public void setSensor(boolean sensor)
sensor
- the sensor to set