Added resize function to TileLayer.