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. |
Constructor | |
OpenLayers. Layer. Image | Create a new image layer |
Functions | |
setMap | |
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) |
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 |
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} |
setMap: function( map )
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 )