OpenLayers. Layer. Image

Instances of OpenLayers.Layer.Image are used to display data from a web accessible image as a map layer.  Create a new image layer with the OpenLayers.Layer.Image constructor.  Inherits from OpenLayers.Layer.

Summary
Instances of OpenLayers.Layer.Image are used to display data from a web accessible image as a map layer.
{Boolean} The layer is a base layer.
{String} URL of the image to use
{OpenLayers.Bounds} The image bounds in map units
{OpenLayers.Size} The image size in pixels
{OpenLayers.Tile.Image}
{Number} The ratio of height/width represented by a single pixel in the graphic
Create a new image layer
Destroy this layer
Create a clone of this layer
{String} OpenLayers.Layer.Image

Properties

isBaseLayer

{Boolean} The layer is a base layer.  Default is true.  Set this property in the layer options

url

{String} URL of the image to use

extent

{OpenLayers.Bounds} The image bounds in map units

size

{OpenLayers.Size} The image size in pixels

tile

{OpenLayers.Tile.Image}

aspectRatio

{Number} The ratio of height/width represented by a single pixel in the graphic

Functions

OpenLayers. Layer. Image

Create a new image layer

Parameters

name{String} A name for the layer.
url{String} Relative or absolute path to the image
extent{OpenLayers.Bounds} The extent represented by the image
size{OpenLayers.Size} The size (in pixels) of the image
options{Object} Hashtable of extra options to tag onto the layer

destroy

destroy: function()

Destroy this layer

clone

clone: function(obj)

Create a clone of this layer

Paramters

obj{Object} An optional layer (is this ever used?)

Return

{OpenLayers.Layer.Image} An exact copy of this layer

Constants

CLASS_NAME

{String} OpenLayers.Layer.Image

Instances of this class represent bounding boxes.
Instances of this class represent a width/height pair
destroy: function()
Destroy this layer
clone: function(obj)
Create a clone of this layer
Create a new image layer