No more percentage based positioning.
Client zoom now supports both over- and undersampling.
This commit is contained in:
@@ -193,21 +193,21 @@ OpenLayers.Tile = OpenLayers.Class({
|
||||
* is to call <clear> and return the result from <shouldDraw>.
|
||||
*
|
||||
* Parameters:
|
||||
* deferred - {Boolean} When drawing was aborted by returning false from a
|
||||
* *beforedraw* listener, the queue manager needs to pass true, so the
|
||||
* tile will not be cleared and immediately be drawn. Otherwise, the
|
||||
* tile will be cleared and a *beforedraw* event will be fired.
|
||||
* immediately - {Boolean} When e.g. drawing was aborted by returning false
|
||||
* from a *beforedraw* listener, the queue manager needs to pass true,
|
||||
* so the tile will not be cleared and immediately be drawn. Otherwise,
|
||||
* the tile will be cleared and a *beforedraw* event will be fired.
|
||||
*
|
||||
* Returns:
|
||||
* {Boolean} Whether or not the tile should actually be drawn.
|
||||
*/
|
||||
draw: function(deferred) {
|
||||
if (!deferred) {
|
||||
draw: function(immediately) {
|
||||
if (!immediately) {
|
||||
//clear tile's contents and mark as not drawn
|
||||
this.clear();
|
||||
}
|
||||
var draw = this.shouldDraw();
|
||||
if (draw && !deferred) {
|
||||
if (draw && !immediately) {
|
||||
draw = this.events.triggerEvent("beforedraw") !== false;
|
||||
}
|
||||
return draw;
|
||||
|
||||
Reference in New Issue
Block a user