Tour API Demos Download Tests
Aperture version 1.0
Generated by: JsDoc Toolkit 2.4.0

Class aperture.geo.MapTileLayer.Bing

A Bing (Microsoft) map service. Use of a Bing map layer requires a key.

Class Summary
Constructor Attributes Constructor Name and Description
 
MapTileLayers may be configured as base layers in Map construction, or later added as overlay layers by calling addLayer on a parent layer.

Method Summary

Class Detail

aperture.geo.MapTileLayer.Bing(spec)
MapTileLayers may be configured as base layers in Map construction, or later added as overlay layers by calling addLayer on a parent layer. This layer constructor is never called directly.
var spec = {
    name: 'My Layer',
    options: {
         type: 'Road',
         key: 'my-license-key-here'
    }
};

// EXAMPLE ONE: create a map and explicitly set the base tile layer
var map = new Map({
     baseLayer : {
         Bing: spec
     }
});

// EXAMPLE TWO: overlay a layer on a map with an existing base layer
map.addLayer( aperture.geo.MapTileLayer.Bing, {}, spec );
Parameters:
{Object} spec
a specification object
{String} spec.name
the local name to give the layer.
{Object} spec.options
implementation specific options.
{String='Road'|'Aerial'|...} spec.options.type
the name of a Bing defined layer type to request.
{String} spec.options.key
a client license key, obtained from Microsoft.