Class GSBox
Extends GSMapFeature.
GSBox represents a rectangular geographic extent on the map.
Requires:
additional-features module
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
GSBox(bounds, options)
Creates a new
GSBox |
| Method Attributes | Method Name and Description |
|---|---|
|
setBounds(bounds)
Sets this feature's bounds
|
- Methods borrowed from class GSMapFeature:
- addContextMenuItem, addEventHandler, addEventListener, addListener, deleteProperty, deselect, disableContextMenu, enableContextMenu, getContextMenu, getProperties, getProperty, isSelectable, isVisible, removeContextMenu, removeContextMenuItem, removeEventHandler, removeEventListener, removeEventListeners, removeListener, select, setContextMenu, setProperty, setTip, setVisible, setZIndex, showInfoWindow, toJson
- Events borrowed from class GSMapFeature:
- featureClicked, featureRemoved
Class Detail
GSBox(bounds, options)
Creates a new
GSBox
- Parameters:
- {GSBounds} bounds
- the geographical extent of the feature
- {Object} options Optional
- options defining the appearance of the box
- {String} options.styles.borderStyle
- CSS
border-styleproperty, defaults tosolid - {String} options.styles.borderColor
- CSS
border-colorproperty, defaults to#ff0000 - {String} options.styles.borderWidth
- CSS
border-widthproperty, defaults to1px - {String} options.styles.backgroundColor
- CSS
background-colorproperty, defaults totransparent - {int} options.opacity
- opacity value as a percentage (0 - 100)
Method Detail
setBounds(bounds)
Sets this feature's bounds
- Parameters:
- {GSBounds} bounds
- the new bounds