java.lang.Object | |
↳ | com.google.android.gms.maps.model.TileOverlayOptions |
Defines options for a TileOverlay.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new set of tile overlay options.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Specifies whether the tiles should fade in.
| |||||||||||
Gets whether the tiles should fade in.
| |||||||||||
Gets the tile provider set for this
TileOverlayOptions object. | |||||||||||
Gets the transparency set for this
TileOverlayOptions object. | |||||||||||
Gets the zIndex set for this
TileOverlayOptions object. | |||||||||||
Gets the visibility setting for this
TileOverlayOptions object. | |||||||||||
Specifies the tile provider to use for this tile overlay.
| |||||||||||
Specifies the transparency of the tile overlay.
| |||||||||||
Specifies the visibility for the tile overlay.
| |||||||||||
Specifies the tile overlay's zIndex, i.e., the order in which it will be drawn where overlays
with larger values are drawn above those with lower values.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a new set of tile overlay options.
Specifies whether the tiles should fade in. The default is true
.
Parameters | |
---|---|
fadeIn |
boolean
|
Returns | |
---|---|
TileOverlayOptions |
this TileOverlayOptions object with a new visibility setting.
|
Gets whether the tiles should fade in.
Returns | |
---|---|
boolean |
true if the tiles are to fade in; false if it is not.
|
Gets the tile provider set for this TileOverlayOptions
object.
Returns | |
---|---|
TileProvider |
the TileProvider of the tile overlay.
|
Gets the transparency set for this TileOverlayOptions
object.
Returns | |
---|---|
float |
the transparency of the tile overlay. |
Gets the zIndex set for this TileOverlayOptions
object.
Returns | |
---|---|
float |
the zIndex of the tile overlay. |
Gets the visibility setting for this TileOverlayOptions
object.
Returns | |
---|---|
boolean |
true if the tile overlay is to be visible; false if it is not.
|
Specifies the tile provider to use for this tile overlay.
Parameters | |
---|---|
tileProvider |
TileProvider :
the TileProvider to use for this tile overlay. |
Returns | |
---|---|
TileOverlayOptions |
the object for which the method was called, with the new tile provider set. |
Specifies the transparency of the tile overlay. The default transparency is 0
(opaque).
Parameters | |
---|---|
transparency |
float :
a float in the range [0..1] where 0 means that the
tile overlay is opaque and 1 means that the tile overlay is transparent. |
Returns | |
---|---|
TileOverlayOptions |
this TileOverlayOptions object with a new transparency setting. |
Throws | |
---|---|
IllegalArgumentException |
if the transparency is outside the range [0..1]. |
Specifies the visibility for the tile overlay. The default visibility is true
.
Parameters | |
---|---|
visible |
boolean
|
Returns | |
---|---|
TileOverlayOptions |
this TileOverlayOptions object with a new visibility setting.
|
Parameters | |
---|---|
out |
Parcel
|
flags |
int
|
Specifies the tile overlay's zIndex, i.e., the order in which it will be drawn where overlays with larger values are drawn above those with lower values. See the documentation at the top of this class for more information about zIndex.
Parameters | |
---|---|
zIndex |
float
|
Returns | |
---|---|
TileOverlayOptions |
this TileOverlayOptions object with a new zIndex set.
|