remove Tile.Image:insertBackBuffer and add API docs for Tile.Image:cloneMarkup
This commit is contained in:
@@ -320,21 +320,13 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: insertBackBuffer
|
* Method: cloneMarkup
|
||||||
* Create a copy of this tile's markup and insert it to the layer
|
* Clone this tile's markup.
|
||||||
* div.
|
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {DOMElement} The back buffer.
|
* {DOMElement} The markup, or undefined if the tile has no image
|
||||||
|
* or if it's currently loading.
|
||||||
*/
|
*/
|
||||||
insertBackBuffer: function() {
|
|
||||||
var frame = this.frame.cloneNode(false);
|
|
||||||
this.layer.div.insertBefore(frame, this.frame);
|
|
||||||
frame.appendChild(this.imgDiv);
|
|
||||||
this.imgDiv = null;
|
|
||||||
return frame;
|
|
||||||
},
|
|
||||||
|
|
||||||
cloneMarkup: function() {
|
cloneMarkup: function() {
|
||||||
if(!this.imgDiv || this.isLoading) {
|
if(!this.imgDiv || this.isLoading) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user