new Geocoder
A widget for finding addresses and landmarks, and flying the camera to them. Geocoding is performed using the Bing Maps Locations API.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
description.container |
Element | String | The DOM element or ID that will contain the widget. | ||
description.scene |
Scene | The Scene instance to use. | ||
description.url |
String |
<optional> |
'http://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. |
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
-
Returns:
Boolean true if the object has been destroyed, false otherwise.