Class: Geocoder

Geocoder

new Geocoder(options)

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 Description
options Object Object with the following properties:
Properties
Name Type Attributes Default Description
container Element | String The DOM element or ID that will contain the widget.
scene Scene The Scene instance to use.
url String <optional>
'https://dev.virtualearth.net' The base URL of the Bing Maps API.
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.
flightDuration Number <optional>
1.5 The duration of the camera flight to an entered location, in seconds.
Source:

Members

container :Element

Gets the parent container.
Type:
  • Element
Source:

viewModel :GeocoderViewModel

Gets the view model.
Type:
Source:

Methods

destroy()

Destroys the widget. Should be called if permanently removing the widget from layout.
Source:

isDestroyed() → {Boolean}

Source:
Returns:
true if the object has been destroyed, false otherwise.
Type
Boolean