new GeocoderViewModel
The view model for the Geocoder widget.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
description.scene |
Scene | The Scene instance to use. | ||
description.url |
String |
<optional> |
'//dev.virtualearth.net' | The base URL of the Bing Maps API. |
description.key |
String |
<optional> |
The Bing Maps key for your application, which can be created at https://www.bingmapsportal.com/. If this parameter is not provided, BingMapsApi.defaultKey is used. If BingMapsApi.defaultKey is undefined as well, a message is written to the console reminding you that you must create and supply a Bing Maps key as soon as possible. Please do not deploy an application that uses this widget without creating a separate key for your application. | |
description.ellipsoid |
Ellipsoid |
<optional> |
Ellipsoid.WGS84 | The Scene's primary ellipsoid. |
description.flightDuration |
Number |
<optional> |
1500 | The duration of the camera flight to an entered location, in milliseconds. |
Source:
Members
-
ellipsoid :Ellipsoid
-
Gets the ellipsoid to be viewed.
-
flightDuration :Number
-
Gets or sets the the duration of the camera flight in milliseconds. A value of zero causes the camera to instantly switch to the geocoding location.
- Default Value:
- 1500
-
isSearchInProgress :Boolean
-
Gets a value indicating whether a search is currently in progress. This property is observable.
-
key :String
-
Gets the Bing maps key.
-
scene :Scene
-
Gets the scene to control.
-
search :Command
-
Gets the Command that is executed when the button is clicked.
-
searchText :String
-
Gets or sets the text to search for.
-
url :String
-
Gets the Bing maps url.