Bing layer using direct tile access as provided by Bing Maps REST Services. See http://msdn.microsoft.com
| OpenLayers. | Bing layer using direct tile access as provided by Bing Maps REST Services. |
| Properties | |
| key | {String} API key for Bing maps, get your own key at http://bingmapsportal.com/ . |
| serverResolutions | {Array} the resolutions provided by the Bing servers. |
| attributionTemplate | {String} |
| metadata | {Object} Metadata for this layer, as returned by the callback script |
| type | {String} The layer identifier. |
| culture | {String} The culture identifier. |
| metadataParams | {Object} Optional url parameters for the Get Imagery Metadata request as described here: http://msdn.microsoft.com |
| tileOptions | {Object} optional configuration options for OpenLayers.Tile instances created by this Layer. |
| Constructor | |
| OpenLayers. | Create a new Bing layer. |
| Functions | |
| loadMetadata | |
| initLayer | Sets layer properties according to the metadata provided by the API |
| getURL | |
| updateAttribution | Updates the attribution according to the requirements outlined in http://gis.638310.n2.nabble.com |
| setMap | |
| clone | |
| destroy | |
| OpenLayers. | This function will be bound to an instance, linked to the global scope with an id, and called by the JSONP script returned by the API. |
{String} API key for Bing maps, get your own key at http://bingmapsportal.com/ .
{String} The layer identifier. Any non-birdseye imageryType from http://msdn.microsoft.com
{String} The culture identifier. See http://msdn.microsoft.com
{Object} Optional url parameters for the Get Imagery Metadata request as described here: http://msdn.microsoft.com
{Object} optional configuration options for OpenLayers.Tile instances created by this Layer. Default is
{crossOriginKeyword: 'anonymous'}Create a new Bing layer.
var road = new OpenLayers.Layer.Bing({
name: "My Bing Aerial Layer",
type: "Aerial",
key: "my-api-key-here",
});| options | {Object} Configuration properties for the layer. |
| key | {String} Bing Maps API key for your application. Get one at http://bingmapsportal.com/. |
| type | {String} The layer identifier. Any non-birdseye imageryType from http://msdn.microsoft.com |
Any other documented layer properties can be provided in the config object.
updateAttribution: function()
Updates the attribution according to the requirements outlined in http://gis.638310.n2.nabble.com
clone: function( obj )
| obj | {Object} |
{OpenLayers.Layer.Bing} An exact clone of this OpenLayers.Layer.Bing
loadMetadata: function()
Sets layer properties according to the metadata provided by the API
initLayer: function()
getURL: function( bounds )
Updates the attribution according to the requirements outlined in http://gis.638310.n2.nabble.com/Bing-imagery-td5789168.html
updateAttribution: function()
setMap: function()
clone: function( obj )
destroy: function()
This function will be bound to an instance, linked to the global scope with an id, and called by the JSONP script returned by the API.
OpenLayers.Layer.Bing.processMetadata = function( metadata )