Class GoogleMapsProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis is a satellite + road mapstatic final intThis is a regular road mapstatic final intThis is a satellite mapFields inherited from class TiledProvider
_url, _zoomLevel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe provider attribution.Defines the language to use for display of labels on map tiles.static intReturns
booleanisSensor()Specifies whether the application requesting the static map is using a sensor to determine the user's location.intMaximal zoom level.voidsetLanguage(String language) Defines the language to use for display of labels on map tiles.voidsetMapType(int type) Sets the map typevoidsetSensor(boolean sensor) Specifies whether the application requesting the static map is using a sensor to determine the user's location.static voidsetTileSize(int aTileSize) Parameters
tileFor(BoundingBox bbox) Gets a tile for the given bounding boxMethods inherited from class TiledProvider
bboxFor, scale, urlMethods inherited from class MapProvider
maxZoomFor, minZoomLevel, projection, tileSize, tileSize, translate
-
Field Details
-
REGULAR
public static final int REGULARThis is a regular road map- See Also:
-
SATELLITE
public static final int SATELLITEThis is a satellite map- See Also:
-
HYBRID
public static final int HYBRIDThis is a satellite + road map- See Also:
-
-
Constructor Details
-
GoogleMapsProvider
Google map provider Constructor
Parameters
apiKey: @param apiKey google maps api key https://developers.google.com/maps/documentation/staticmaps/#api_key
-
-
Method Details
-
getTileSize
public static int getTileSize()Returns
the tileSize
-
setTileSize
public static void setTileSize(int aTileSize) Parameters
aTileSize: the tileSize to set
-
setMapType
public void setMapType(int type) Sets the map type -
maxZoomLevel
public int maxZoomLevel()Maximal zoom level. Zoom levels are counted from zero to maxZoomLevel(). 0 is farest view, where the scale is greatest.- Specified by:
maxZoomLevelin classMapProvider
-
attribution
The provider attribution.
Returns
a String of the provider attribution
- Specified by:
attributionin classMapProvider
-
tileFor
Gets a tile for the given bounding box
Parameters
bbox: a bounding box
Returns
a Tile for the given bounding box
- Overrides:
tileForin classTiledProvider
-
getLanguage
Defines the language to use for display of labels on map tiles. Note that this parameter is only supported for some country tiles; if the specific language requested is not supported for the tile set, then the default language for that tileset will be used.
Returns
the language
-
setLanguage
Defines the language to use for display of labels on map tiles. Note that this parameter is only supported for some country tiles; if the specific language requested is not supported for the tile set, then the default language for that tileset will be used.
Parameters
language: the language to set
-
isSensor
public boolean isSensor()Specifies whether the application requesting the static map is using a sensor to determine the user's location.
Returns
the sensor
-
setSensor
public void setSensor(boolean sensor) Specifies whether the application requesting the static map is using a sensor to determine the user's location.
Parameters
sensor: the sensor to set
-