Revised directory structure (js/ -> lib/, test/ -> tests/) to match JSAN distribution standards, as documented at http://www.openjsan.org/documentation/dists.html.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
30
lib/OpenLayers/Tile/Image.js
Normal file
30
lib/OpenLayers/Tile/Image.js
Normal file
@@ -0,0 +1,30 @@
|
||||
OpenLayers.Tile.Image = Class.create();
|
||||
OpenLayers.Tile.Image.prototype =
|
||||
Object.extend( new OpenLayers.Tile(), {
|
||||
|
||||
// {DOMElement} img
|
||||
img:null,
|
||||
|
||||
initialize: function(bounds,url,size) {
|
||||
OpenLayers.Tile.prototype.initialize.apply(this,arguments);
|
||||
},
|
||||
|
||||
draw:function() {
|
||||
OpenLayers.Tile.prototype.draw.apply(this, arguments);
|
||||
this.img = OpenLayers.Util.createImage(this.url,
|
||||
this.size);
|
||||
},
|
||||
/*
|
||||
* @param OpenLayers.Point
|
||||
*/
|
||||
setPosition:function(point) {
|
||||
this.img.style.top = point.y+"px";
|
||||
this.img.style.left = point.x+"px";
|
||||
this.img.style.position = "absolute";
|
||||
this.position = point;
|
||||
},
|
||||
getPosition: function() {
|
||||
return this.position;
|
||||
}
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user