new Bookmark(name, bounds, userCreated, isHomeLocationopt)
Instances of this class respresent named locations
Parameters:
Name |
Type |
Attributes |
Description |
name |
string
|
|
The name of this bookmark |
bounds |
OpenLayers.Bounds
|
|
The bounds for this bookmark |
userCreated |
boolean
|
|
True if the user has created this bookmark |
isHomeLocation |
boolean
|
<optional>
|
True if this bookmark has been set as the home location |
Members
bounds
Properties:
Name |
Type |
Description |
bounds |
OpenLayers.Bounds
|
The bounds for this bookmark |
events
Properties:
events
Properties:
isHomeLocation
Properties:
Name |
Type |
Description |
isHomeLocation |
boolean
|
True if this bookmark has been set as the home location |
name
Properties:
Name |
Type |
Description |
name |
string
|
The name of this bookmark |
userCreated
Properties:
Name |
Type |
Description |
userCreated |
boolean
|
True if the user has created this bookmark |
Methods
destroy()
Destroys this bookmark
setIsHomeLocation(isHomeLocation)
Sets the home location property
Parameters:
Name |
Type |
Description |
isHomeLocation |
boolean
|
True if this is the home location, otherwise false |
Fires:
Gets a simple object that can be serialised into a cookie
Returns:
-
Type
-
Cadcorp.UI.SerialisableBookmark
Events
isHomeLocationChanged
Open event
Type:
Properties: