add a tileAnimation map option
This commit is contained in:
@@ -396,6 +396,14 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
*/
|
*/
|
||||||
paddingForPopups : null,
|
paddingForPopups : null,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* APIProperty: tileAnimation
|
||||||
|
* {Boolean} If set to true the olMapTileAnim class is assigned to the
|
||||||
|
* map div. This, with OpenLayers' default CSS, results in fade-in
|
||||||
|
* effects when image tiles are displayed.
|
||||||
|
*/
|
||||||
|
tileAnimation: true,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: minPx
|
* Property: minPx
|
||||||
* {<OpenLayers.Pixel>} Lower left of maxExtent in viewport pixel space.
|
* {<OpenLayers.Pixel>} Lower left of maxExtent in viewport pixel space.
|
||||||
@@ -500,6 +508,9 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
}
|
}
|
||||||
|
|
||||||
OpenLayers.Element.addClass(this.div, 'olMap');
|
OpenLayers.Element.addClass(this.div, 'olMap');
|
||||||
|
if (this.tileAnimation) {
|
||||||
|
OpenLayers.Element.addClass(this.div, 'olMapTileAnim');
|
||||||
|
}
|
||||||
|
|
||||||
// the viewPortDiv is the outermost div we modify
|
// the viewPortDiv is the outermost div we modify
|
||||||
var id = this.id + "_OpenLayers_ViewPort";
|
var id = this.id + "_OpenLayers_ViewPort";
|
||||||
|
|||||||
Reference in New Issue
Block a user