java.lang.Object | |
↳ | com.amazon.geo.mapsv2.model.GroundOverlayOptions |
Ground overlays are not currently supported in the Amazon Maps API.
Class for defining options for a new GroundOverlay
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
float | NO_DIMENSION | For the height when it is calculated via the width and the aspect ratio of the image. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Empty constructor for creating ground overlay options with all default
values.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Coordinates used to anchor the image at the specified position.
| |||||||||||
Sets the bearing of this ground overlay to the specified degrees clockwise
from north about the anchor point normalized to [0.0, 360.0).
| |||||||||||
Gets the horizontal position of the current anchor for this ground
overlay.
| |||||||||||
Gets the vertical position of the current anchor for this ground overlay.
| |||||||||||
Gets the bearing for this ground overlay.
| |||||||||||
Gets the
LatLngBounds for this ground overlay. | |||||||||||
Gets the height for this ground overlay.
| |||||||||||
Gets the image for this ground overlay.
| |||||||||||
Gets the location for this ground overlay.
| |||||||||||
Gets the transparency for this ground overlay.
| |||||||||||
Gets the width for this ground overlay.
| |||||||||||
Gets the zIndex for this ground overlay.
| |||||||||||
Sets the image for this ground overlay.
| |||||||||||
Gets the visibility of this ground overlay.
| |||||||||||
Sets the position of this ground overlay with an anchor at a specific
geographic location and a set width and height in meters.
| |||||||||||
Sets the position of this ground overlay with an anchor at a specific
geographic location and a set width in meters.
| |||||||||||
Specifies the bounding box (@link LatLngBounds) that encompasses the
image.
| |||||||||||
Sets the transparency for this ground overlay.
| |||||||||||
Sets the visibility for this ground overlay.
| |||||||||||
Sets the zIndex for the ground overlay.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
For the height when it is calculated via the width and the aspect ratio of the image.
Empty constructor for creating ground overlay options with all default
values. Set either a position with a width (plus optional height) or the
positionFromBounds(LatLngBounds)
before using.
Coordinates used to anchor the image at the specified position. u and v are in the range [0.0, 1.0] where (0, 0) is the top left corner of the image and (1, 1) is the bottom right corner of the image.
u | The horizontal position to anchor the image in the range [0.0, 1.0]. |
---|---|
v | The vertical position to anchor the image in the range [0.0, 1.0]. |
GroundOverlayOptions
object.
Sets the bearing of this ground overlay to the specified degrees clockwise
from north about the anchor point normalized to [0.0, 360.0). The default
is straight north (bearing = 0.0). If this bearing transform is applied
to a ground overlay via positionFromBounds(LatLngBounds)
, the bounds will
be applied first and then the rotation.
bearing | The bearing in degrees [0.0, 360.0). |
---|
GroundOverlayOptions
object.
Gets the horizontal position of the current anchor for this ground overlay. This is a value in the range of [0.0, 1.0].
Gets the vertical position of the current anchor for this ground overlay. This is a value in the range of [0.0, 1.0].
Gets the bearing for this ground overlay. This is a value in the range of [0.0, 360.0).
Gets the LatLngBounds
for this ground overlay. This is null
if the
ground overlay was set via
position(LatLng, float)
or
position(LatLng, float, float)
.
Gets the height for this ground overlay.
Gets the location for this ground overlay. This is null
if the
position was via
positionFromBounds(LatLngBounds)
.
LatLng
at which the anchor will be set.
Gets the transparency for this ground overlay. The default is fully opaque, or 0.0.
Gets the width for this ground overlay.
Gets the zIndex for this ground overlay. This defines in what order the
objects are drawn on the screen. See
setZIndex(float)
for more details.
Sets the image for this ground overlay.
image | The image to be displayed. |
---|
GroundOverlayOptions
object.
Gets the visibility of this ground overlay.
Sets the position of this ground overlay with an anchor at a specific geographic location and a set width and height in meters. The image is stretched to fit the exact width and height specified. Aspect ratio is not preserved.
location | The location on the map to anchor this ground overlay. To
move the anchor within the image instead of the map, use
anchor(float, float) . |
---|---|
width | The width of the overlay in meters. |
height | The height of the overlay in meters. |
GroundOverlayOptions
object.IllegalArgumentException | if width or height are negative. |
---|---|
IllegalStateException | if
positionFromBounds(LatLngBounds)
was already called on this object.
|
Sets the position of this ground overlay with an anchor at a specific geographic location and a set width in meters. The height is automatically calculated to preserve the aspect ratio of the image.
location | The location on the map to anchor this ground overlay. To
move the anchor within the image instead of the map, use
anchor(float, float) . |
---|---|
width | The width of the overlay in meters. |
GroundOverlayOptions
object.IllegalArgumentException | if width is negative. |
---|---|
IllegalStateException | if
positionFromBounds(LatLngBounds)
was already called on this object.
|
Specifies the bounding box (@link LatLngBounds) that encompasses the
image. The image is stretched to fit the LatLngBounds
as well as
possible, so the aspect ratio on the image is not preserved. If a bearing
is set, the image is placed within the bounds first and then rotated.
This may cause the image to exceed the original bounds specified.
bounds | The bounds in which to place the ground overlay |
---|
GroundOverlayOptions
object.
Sets the transparency for this ground overlay. The default is fully
opaque (0.0). This is a value in the range [0.0, 1.0] where 0 is opaque
and 1 is transparent. Even if the ground overlay is completely
transparent, isVisible()
still returns
true
.
transparency | The transparency of the image for this ground overlay. |
---|
GroundOverlayOptions
object.IllegalArgumentException | if the transparency is not in the range [0.0, 1.0]. |
---|
Sets the visibility for this ground overlay. The default is true
.
visible | true to make the ground overlay visible, or
false to make it hidden. |
---|
GroundOverlayOptions
object.
Sets the zIndex for the ground overlay. See
setZIndex(float)
for more details.
zIndex | The new zIndex. Note that this can be a non-integer value. |
---|
GroundOverlayOptions
object.