new GeoLocateButton(config)
An enhanced button that deals with the browsers Geolocation API.
see W3C Geolocation API
see W3C Geolocation API
Parameters:
Name | Type | Description |
---|---|---|
config |
Object | Configuration for this object. The config supplied directly extends the control |
Members
available
Properties:
Name | Type | Description |
---|---|---|
available |
Boolean | The navigator.geolocation object is available. |
events
Properties:
Name | Type | Description |
---|---|---|
events |
Cadcorp.Util.Events | The events object |
geolocateCurrentText
Properties:
Name | Type | Description |
---|---|---|
geolocateCurrentText |
string | The text to display when the user clicks the geolocate button. |
geolocateFailedText
Properties:
Name | Type | Description |
---|---|---|
geolocateFailedText |
string | The text to display if the geolocation fails. |
geolocateUncapableText
Properties:
Name | Type | Description |
---|---|---|
geolocateUncapableText |
string | The text to display if the users browser does not support geolocation |
geoLocationOptions
Properties:
Name | Type | Description |
---|---|---|
geoLocationOptions |
object | Options object to send to the geolocation api. See {@link http://www.w3.org/TR/geolocation-API/#position_options_interface|W3C Geolocation |
id
Properties:
Name | Type | Description |
---|---|---|
id |
string | The id for this control |
prefix
Properties:
Name | Type | Description |
---|---|---|
prefix |
string | The asp.net client id |
toolTip
Properties:
Name | Type | Description |
---|---|---|
toolTip |
string | The tooltip for the button. |