new Provider( [opt_options])
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
opt_options |
bu.geocoding.ProviderOptions |
<optional> |
Options. |
- Source:
- bu/geocoding/provider.js
Extends
- ol.Object
Methods
-
formatAddress(address)
-
Formats a geocoding address in HTML.
Parameters:
Name Type Description addressbu.geocoding.Address Geocoding address.
- Source:
- bu/geocoding/provider.js
Returns:
- Type
- string
-
formatLocation(lonlat, projected, projection)
-
Formats a geocoding location in HTML.
Parameters:
Name Type Description lonlatbu.Coordinate Geocoding location in EPSG:4326.
projectedbu.Coordinate Geocoding location in viewer projection.
projectionstring Name or code for viewer projection.
- Source:
- bu/geocoding/provider.js
Returns:
- Type
- string
-
<abstract> getProviderType()
-
Returns the provider type.
- Source:
- bu/geocoding/provider.js
Returns:
-
<abstract> search(query, load, error)
-
Execute a request to the provider service service.
Parameters:
Name Type Description querystring The query string.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- bu/geocoding/provider.js
-
updateLanguage()
-
Updates the geocoding provider for the current language in the bu.Globalization singleton.
- Source:
- bu/geocoding/provider.js
Javascript API 7.x