code: function (bounds, zoomChanged, dragging) {
          OpenLayers.Layer.prototype.moveTo.call(this, bounds, zoomChanged, dragging);
          // recreate tile only when resolution is changed
          if (Math.abs(this.map.resolution - this.resolution) > 0.000001 || !this.tile) {
              this.resolution = this.map.resolution; // save current mask resolution
              //create the new tile
              if (this.tile) this.tile.destroy();
              this.tile = new OpenLayers.Tile.Mask(this, this.getTilePosition(), this.getTileSize());
              this.events.triggerEvent("createtile", { "tile": this.tile });
          } else {
              //just resize the tile and set it's new position
              this.tile.setCanvasSize(this.getTileSize());
              this.tile.setPosition(this.getTilePosition());
          }
          this.tile.draw();
      }
docs: override