new Geocoder()
A widget for finding addresses and landmarks, and flying the camera to them. Geocoding is
performed using the Bing Maps Locations API.
Name | Type | Default | Description |
---|---|---|---|
options.container |
Element | String | The DOM element or ID that will contain the widget. | |
options.scene |
Scene | The Scene instance to use. | |
options.url |
String |
'//dev.virtualearth.net'
|
optional The base URL of the Bing Maps API. |
options.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. |
|
options.ellipsoid |
Ellipsoid |
Ellipsoid.WGS84
|
optional The Scene's primary ellipsoid. |
options.flightDuration |
Number |
1500
|
optional The duration of the camera flight to an entered location, in milliseconds. |
Members
-
container :Element
-
Gets the parent container.
-
viewModel :GeocoderViewModel
-
Gets the view model.
Methods
-
destroy()
-
Destroys the widget. Should be called if permanently removing the widget from layout.
-
isDestroyed() → Boolean
-
Returns:
true if the object has been destroyed, false otherwise.