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

Class aperture.geo.MapTileLayer.Image

A single image.

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.Image(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',
    url: 'http://mysite/myimage.png',
    size: [1024, 1024], // width and height in pixels
    extent: [
       -20037500, // left
       -20037500, // bottom
        20037500, // right
        20037500  // top
    ]
};

// EXAMPLE: overlay a layer on a map with an existing base layer
map.addLayer( aperture.geo.MapTileLayer.Image, {}, spec );
Parameters:
{Object} spec
a specification object
{String} spec.name
the local name to give the layer.
{String} spec.url
the source url for the image.
{Array(Number)} spec.size
an array of two numbers specifying width and height of the image in pixels.
{Array(Number)} spec.extent
an array of numbers specifying the geographical bounding region of the image. The expected order is: [left, bottom, right, top] };