java.lang.Object | |
↳ | com.amazon.geo.mapsv2.model.GroundOverlay |
Ground overlays are not currently supported in the Amazon Maps API.
Ground overlays are images on top of the map that are sized such that they cover the same portion of the map. Zooming in and out makes this image appear bigger or smaller (unlike markers, which stay the same size on the screen regardless of zoom level).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets bearing in degrees clockwise from north
| |||||||||||
Gets the bounds that encompasses the ground overlay.
| |||||||||||
Gets the height of the ground overlay in meters.
| |||||||||||
Gets this ground overlay's map-unique id.
| |||||||||||
Gets the location where this ground overlay is anchored.
| |||||||||||
Gets the transparency of this ground overlay.
| |||||||||||
Gets the width of the ground overlay in meters.
| |||||||||||
Gets the order in which this ground overlay is drawn with respect to
Polyline s, Polygon s, and TileOverlay s but not
Marker s. | |||||||||||
Retrieves a boolean indicating whether this ground overlay would be drawn
given that the ground overlay is within the camera's viewport.
| |||||||||||
Removes this ground overlay.
| |||||||||||
Sets the bearing of this ground overlay.
| |||||||||||
Sets the width of image on the map in meters.
| |||||||||||
Sets the width and height of the image on the map in meters.
| |||||||||||
Sets the bitmap for this ground overlay and replaces the old image in the
same spot.
| |||||||||||
Sets the new anchor point for this ground overlay and keeps everything
else constant.
| |||||||||||
Sets the bounds of the ground overlay ignoring bearing; however, bearing
is applied when drawing the overlay.
| |||||||||||
Sets the transparency of this ground overlay.
| |||||||||||
Sets whether or not this ground overlay is visible given that the overlay
is within the camera's viewport.
| |||||||||||
Sets the z-index of this ground overlay.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Gets bearing in degrees clockwise from north
Gets the bounds that encompasses the ground overlay. This ignores rotation.
LatLngBounds
which encompasses the ground overlay
ignoring rotation
Gets the height of the ground overlay in meters.
Gets this ground overlay's map-unique id.
Gets the location where this ground overlay is anchored.
LatLng
of the anchor of the ground overlay
Gets the transparency of this ground overlay. The range is [0, 1] where 0 is opaque and 1 is effectively invisible.
Gets the width of the ground overlay in meters.
Gets the order in which this ground overlay is drawn with respect to
Polyline
s, Polygon
s, and TileOverlay
s but not
Marker
s. The default is 0. Higher z indexed overlays draw on top
of lower z indexed ones.
Retrieves a boolean indicating whether this ground overlay would be drawn given that the ground overlay is within the camera's viewport.
true
if this overlay is visible
Removes this ground overlay. After calling this method, calling other methods on the removed ground overlay results in undefined behavior.
Sets the bearing of this ground overlay. This bearing is applied around the anchor point.
bearing | The bearing (rotation) of the ground overlay, in degrees clockwise from north. |
---|
Sets the width of image on the map in meters. The height is subsequently calculated from this width to preserve the aspect ratio.
width | Width in meters |
---|
Sets the width and height of the image on the map in meters. The aspect ratio is not kept and instead, the bitmap is stretched to match these values.
width | Width in meters |
---|---|
height | Height in meters |
Sets the bitmap for this ground overlay and replaces the old image in the same spot.
image | The bitmap for this ground overlay |
---|
Sets the new anchor point for this ground overlay and keeps everything else constant.
latLng | the new LatLng for the anchor point |
---|
Sets the bounds of the ground overlay ignoring bearing; however, bearing is applied when drawing the overlay.
Sets the transparency of this ground overlay. This is in the range of [0, 1] where 0 is opaque and 1 is effectively invisible.
transparency | How transparent to make this ground overlay |
---|
Sets whether or not this ground overlay is visible given that the overlay is within the camera's viewport.
visible | True to set it visible |
---|
Sets the z-index of this ground overlay. Higher z-indexed overlays draw on top of lower z-indexed overlays.
zIndex | The new z-index value for this ground overlay |
---|