|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--CAF.Select.Item.Model | +--CAF.Table.Row.Model | +--CAF.List.Item.Model | +--CAF.GMap.MarkerList.Item.Model
GMap Marker client-side model.
The Marker model is based on the Table/List item model.
Note that the value of the Marker model is its server-side id, not its string coordinates.
Also note that invoking the set* methods on this model do not immediately affect the modeled marker;
the modeled marker will not be updated until the marker model is passed to the marker-list model's set() method.
Defined in gmap.js
Field Summary | |
Object |
classes
|
Fields inherited from class CAF.List.Item.Model |
classes
|
Fields inherited from class CAF.Table.Row.Model |
classes
|
Constructor Summary | |
CAF.GMap.MarkerList.Item.Model
()
|
Method Summary | |
Object
|
getCoords()
Gets this overlay's latitude;longitude coordinate pair in string form. |
Object
|
getIcon()
Gets this option's icon url. |
Object
|
getLabel()
Gets this option's label. |
Object
|
getLatitude()
The latitude of this overlay. |
Object
|
getLongitude()
The longitude of this overlay. |
Object
|
getOverlay()
Returns GMarker object for this item if it exists. |
void
|
hideInfoWindow()
Hides the info window for this marker. |
void
|
initialize(id, label, description, disabled, style, styleClass, icon)
Initializer. |
Object
|
isDisabled()
True if option is disabled. |
Object
|
isLoading()
Returns true if this row is loading. |
Object
|
isSelected()
True if this option is selected. |
Object
|
isVisible()
Returns true if this row is visible. |
void
|
setAddress(address, country)
Sets the marker's location to the specified textual address. |
void
|
setCoords(coords)
Sets this overlay's latitude;longitude coordinate pair in string form. |
void
|
setDisabled(disabled)
Sets this option as enabled/disabled. |
void
|
setIcon(icon)
Sets this option's icon url. |
void
|
setLabel(label)
Sets this option's label. |
void
|
setLatitude(lat)
The latitude of this overlay. |
void
|
setLongitude(lng)
The longitude of this overlay. |
void
|
showInfoWindow()
Shows the info window for this marker. |
Methods inherited from class CAF.Table.Row.Model |
getControlId, getControlIds, getValues, setValues
|
Methods inherited from class CAF.Select.Item.Model |
toString, equals, getValue, setValue, getDescription, setDescription, getStyle, setStyle, getStyleClass, setStyleClass
|
Field Detail |
Object classes
Constructor Detail |
CAF.GMap.MarkerList.Item.Model()
Method Detail |
Object getCoords()
Object getIcon()
Object getLabel()
Object getLatitude()
Object getLongitude()
Object getOverlay()
void hideInfoWindow()
void initialize(id, label, description, disabled, style, styleClass, icon)
id
- Row id or element.
label
- (optional) Marker title.
description
- (optional) Marker info.
disabled
- (optional) True if item is disabled.
style
- Not used.
styleClass
- Not used.
icon
- (optional) Icon url.
Object isDisabled()
Object isLoading()
Object isSelected()
Object isVisible()
void setAddress(address, country)
address
- Textual address. CAF.GMap.MarkerList.Item.Model.prototype.Ex = "600 108th Ave NE Bellevue WA 98004";.
country
- (optional) Two-character country code. Used to weight the address results, if ambiguous. CAF.GMap.MarkerList.Item.Model.prototype.Ex = "fr";.
void setCoords(coords)
coords
- Coords or "".
void setDisabled(disabled)
disabled
- True to disable, false to enable.
void setIcon(icon)
icon
- Icon url or "".
void setLabel(label)
label
- String label.
void setLatitude(lat)
lat
- Latitude or 0.
void setLongitude(lng)
lng
- Longitude or 0.
void showInfoWindow()
|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |