API / geotoolkit / map / sources / Bing / Bing
Tile source that allows user to get tiles from the Bing Maps server
↳
Bing
Constructors
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
imagepool | number | The amount of cache for the tile images |
maxlod | number | The maximum level of details for the tiles |
minlod | number | The minimum level of details for the tiles |
system | string | Initial data coordinate system |
tileheight | number | Height for the tiles to use (in px) |
tilewidth | number | Width for the tiles to use (in px) |
token | string | Authorization token (for ArcGIS tile servers if needed) |
url | string | Data server url |
Constructors
• new Bing(options?)
| Name | Type | Description |
|---|---|---|
Optional options | Options | options |
TileSource.constructor
Methods
▸ clear(): Bing
Clears all the data.
this
▸ dispose(): void
Disposes this source, once disposed it should not be used anymore.
void
▸ getCenterPoint(): Point
Returns Bing Maps center point
▸ getClassName(): string
string
▸ getCopyright(): string
Returns copyright information.
string
▸ getCulture(): string
Returns Bing Maps culture code
string
▸ Protected getDataLoader(): AbstractLoader
Returns server data loader (if exists)
▸ getImagerySet(): BingImagerySet
Returns Bing imagery set
▸ getInitialCoordinateSystem(): AbstractSystem
Gets current data initial coordinate system.
Tile.getInitialCoordinateSystem
▸ getKey(): string
Returns Bing Maps API key
string
▸ getMapCoordinateSystem(): AbstractSystem
Gets current map coordinate system.
▸ getModelLimits(): Rect
Returns the current data model limits (presumably loaded from the server if it's settled)
▸ getProperties(): OptionsOut
Returns properties
options
▸ getServerData(): JSONObject | XMLDocument
Returns server data loaded from the server Should be used asynchronically after loadServerData() method is called
JSONObject | XMLDocument
▸ getServerURL(): string | string[]
Gets the server url that is currently used for requests
string | string[]
server url
▸ getTransformerFromMap(): Transformer
Gets transformer to transform data from map coordinate system
▸ getTransformerToMap(): Transformer
Gets transformer to transform data to map coordinate system
▸ getUriScheme(): string
Returns Bing Maps servers uri scheme
string
▸ hasEventListener(type, callback?): boolean
Check if a list of event listeners for this type contains this listener
| Name | Type | Description |
|---|---|---|
type | string | type of event or property |
Optional callback | Function | to be called, if null, check if any callback is registered |
boolean
▸ Protected initLoader(loader?): Bing
Initializes the loader provided
| Name | Type | Description |
|---|---|---|
Optional loader | AbstractLoader | loader to use |
this
▸ isDataLoaded(): boolean
Returns true if server data is already loaded (or no loader provided)
boolean
▸ isDataReady(): boolean
Checks if source (current visible) data is loaded and ready to be rendered
boolean
▸ isDisposed(): boolean
Returns whether this object has been disposed
boolean
▸ isLoading(): boolean
Checks if some of the requests haven't been finished yet. Returns true if some data is loading, false otherwise.
boolean
▸ isSilent(): boolean
Return true if the event dispatcher doesn't notify any events
boolean
▸ loadServerData(): Promise<Bing>
Returns promise that is loaded when server settings are ready to process
Promise<Bing>
▸ loadSourceData(): Promise<AbstractSource>
Returns promise that is resolving when data are ready to process
Promise<AbstractSource>
▸ notify<E>(type, source, args?): Bing
Notify listeners
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | event types |
source | Tile | of the event |
Optional args | EventMap[E] | arguments of the event |
this
▸ off<E>(type?, callback?): Bing
Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
Optional type | E | type of the event |
Optional callback | (eventType: E, sender: Bing, args: EventMap[E]) => void | function to be called |
this
▸ on<E>(type, callback): Bing
Attach listener on event that will be called whenever the specified event is delivered to the target
If the callback function is already in the list of event listeners for this target, the function is not added a second time.
If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event or property |
callback | (eventType: E, sender: Bing, args: EventMap[E]) => void | to be called |
this
▸ Protected resetLastQueryParams(): Bing
Resets saved last queried limits and layer
this
▸ setCenterPoint(point): Bing
Sets Bing Maps center point
| Name | Type | Description |
|---|---|---|
point | Point | bing maps culture code |
this
▸ setCulture(culture): Bing
Sets Bing Maps culture code
| Name | Type | Description |
|---|---|---|
culture | string | bing maps culture code |
this
▸ Protected setDataReady(isReady, err?): Bing
Sets source (current visible) data ready/not ready, changes the corresponding promise
| Name | Type | Description |
|---|---|---|
isReady | boolean | true if source data was loaded, false if it needs to be reset |
Optional err | Error | data loading error (if exists) |
this
▸ setImagerySet(imagerySet): Bing
Sets Bing imagery set
| Name | Type | Description |
|---|---|---|
imagerySet | BingImagerySet | bing imagery set |
this
▸ setInitialCoordinateSystem(system): Bing
Sets the data initial coordinate system.
| Name | Type | Description |
|---|---|---|
system | string | AbstractSystem | initial coordinate system |
this
Tile.setInitialCoordinateSystem
▸ setKey(key): Bing
Sets Bing Maps API key
| Name | Type | Description |
|---|---|---|
key | string | bing maps key |
this
▸ setMapCoordinateSystem(system): Bing
Sets map coordinate system.
| Name | Type | Description |
|---|---|---|
system | string | AbstractSystem | map coordinate system |
this
▸ setProperties(properties?): Bing
Sets properties (default properties listed are for construction time only)
| Name | Type | Description |
|---|---|---|
Optional properties | Options | options |
this
▸ setQueryParameter(param, value?): Bing
Sets custom query parameter to add to the data requests
| Name | Type | Description |
|---|---|---|
param | string | Record<string, string | number> | parameter name or custom parameters object (in name -> value format) |
Optional value | string | number | parameter value |
this
▸ setServerURL(url): Bing
Sets the server url to use for requesting
| Name | Type | Description |
|---|---|---|
url | string | string[] | server url |
this
▸ setSilent(bool): Bing
Set silent mode
| Name | Type | Description |
|---|---|---|
bool | boolean | flag to enable silent mode |
this
▸ setUriScheme(uriScheme): Bing
Sets Bing Maps servers uri scheme to use
| Name | Type | Description |
|---|---|---|
uriScheme | string | bing maps servers uri scheme |
this
▸ update(): Bing
Aborts all the sent requests, resends the last one
this
▸ Static getClassName(): string
string