Class: GeocoderViewModel

GeocoderViewModel

new GeocoderViewModel()

The view model for the Geocoder widget.

Name Type Default Description
options.scene Scene

The scenario instance to be used.

options.url String 'https://dev.virtualearth.net' optional

The base URL of the Bing Maps API.

options.key String optional

The Bing Maps key for the application, which can be created at https://www.bingmapsportal.com. If BingMapsApi.defaultKey is also undefined, the console will display a message reminding you to create and provide a Bing Maps key as soon as possible. Do not deploy applications that use this widget without creating a separate key for your application.

options.flightDuration Number optional

The duration of the camera's flight to the input position, measured in seconds.

Members

completeEvent

Obtain the event triggered upon completion of the flight.

dataSourceDataSource

Obtain data source.

flightDurationNumber undefined

Gets or sets the duration of camera flight in seconds. If the value is 0, the camera will immediately switch to the geocoding position.

Default Value:
undefined

isSearchInProgressBoolean

Get a value indicating whether the search is in progress. This attribute is observable.

keepExpandedBoolean

Gets or sets a value indicating whether the instance always displays its text input box.

Default Value:
false

keyString

Get the key to Bing Maps.

sceneScene

Obtain the scene to be controlled.

Get the command executed when the button is clicked.

searchTextString

Get or set the text to search for. The text can be an address, as well as longitude, latitude, and optional altitude, where longitude and latitude are in degrees and altitude is in meters.

urlString

Get the URL of Bing Maps.