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.
OpenLayers. Layer. Image | Instances of OpenLayers.Layer.Image are used to display data from a web accessible image as a map layer. |
Properties | |
isBaseLayer | {Boolean} The layer is a base layer. |
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 | {Float} The ratio of height/width represented by a single pixel in the graphic |
Constructor | |
OpenLayers. Layer. Image | Create a new image layer |
Functions | |
destroy | Destroy this layer |
clone | Create a clone of this layer |
setMap | |
moveTo | Create the tile for the image or resize it for the new resolution |
setUrl | |
getURL | The url we return is always the same (the image itself never changes) so we can ignore the bounds parameter (it will always be the same, anyways) |
{OpenLayers.Bounds} The image bounds in map units
{OpenLayers.Size} The image size in pixels
Create a new image layer
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 |
clone: function( obj )
Create a clone of this layer
obj | {Object} An optional layer (is this ever used?) |
{OpenLayers.Layer.Image} An exact copy of this layer
moveTo:function( bounds, zoomChanged, dragging )
Create the tile for the image or resize it for the new resolution
bounds | {OpenLayers.Bounds} |
zoomChanged | {Boolean} |
dragging | {Boolean} |
getURL: function( bounds )
The url we return is always the same (the image itself never changes) so we can ignore the bounds parameter (it will always be the same, anyways)
bounds | {OpenLayers.Bounds} |
Destroy this layer
destroy: function()
Create a clone of this layer
clone: function( obj )
setMap: function( map )
Create the tile for the image or resize it for the new resolution
moveTo:function( bounds, zoomChanged, dragging )
setUrl: function( newUrl )
The url we return is always the same (the image itself never changes) so we can ignore the bounds parameter (it will always be the same, anyways)
getURL: function( bounds )