new GeocoderViewModel(options)
The view model for the
Geocoder
widget.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Object with the following properties:
Properties
|
Members
complete :Event
Gets the event triggered on flight completion.
Type:
flightDuration :Number|undefined
Gets or sets the the duration of the camera flight in seconds.
A value of zero causes the camera to instantly switch to the geocoding location.
The duration will be computed based on the distance when undefined.
Type:
- Number | undefined
- Default Value:
- undefined
- Source:
isSearchInProgress :Boolean
Gets a value indicating whether a search is currently in progress. This property is observable.
Type:
- Boolean
keepExpanded :Boolean
Gets or sets a value indicating if this instance should always show its text input field.
Type:
- Boolean
- Default Value:
- false
- Source:
key :String
Gets the Bing maps key.
Type:
- String
scene :Scene
Gets the scene to control.
Type:
search :Command
Gets the Command that is executed when the button is clicked.
Type:
searchText :String
Gets or sets the text to search for. The text can be an address, or longitude, latitude,
and optional height, where longitude and latitude are in degrees and height is in meters.
Type:
- String
url :String
Gets the Bing maps url.
Type:
- String