public class Rectangle extends MapObject
Constructor and Description |
---|
Rectangle(Map map)
Creates new Rectangle object.
|
Modifier and Type | Method and Description |
---|---|
LatLngBounds |
getBounds()
Returns bounds of current rectangle.
|
boolean |
getDraggable()
Returns whether this shape can be dragged by the user.
|
boolean |
getEditable()
Returns whether this shape can be edited by the user.
|
boolean |
getVisible()
Returns whether this poly is visible on the map.
|
void |
setBounds(LatLngBounds bounds)
Sets new bounds for rectangle.
|
void |
setDraggable(boolean value)
If set to true, the user can drag this shape over the map.
|
void |
setEditable(boolean value)
If set to true, the user can edit this shape by dragging the control points shown at the vertices
and on each segment.
|
void |
setOptions(RectangleOptions options)
Sets new options for current shape.
|
void |
setVisible(boolean value)
Hides this poly if set to false.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public Rectangle(Map map)
map
- owner Map objectpublic boolean getDraggable()
public boolean getEditable()
public boolean getVisible()
@Nullable public LatLngBounds getBounds()
public void setDraggable(boolean value)
value
- new valuepublic void setEditable(boolean value)
value
- new valuepublic void setVisible(boolean value)
value
- new valuepublic void setOptions(RectangleOptions options)
options
- new options objectpublic void setBounds(LatLngBounds bounds)
bounds
- new options object